Hello,
First time asking throught the forum.
I have a text file with some information that I want to extract as a matrix to work with later on.
The first file (ReactionsPortic5Combination4.txt) is the raw information out of another programm and the second one (5_4.txt) is the first one processed so only the rows with information remain. My problem is that the columns FZ (4th column) and MX (fifth column) are too near and when I try to extract the matrix I have a 5 column matrix with a NaN value column.
How could I add commas between the numbers for all files like this so this issue doesn't happen.
Thanks in advance.
function [Matrix] = ObtainTxtWithNumber(NameTxt,...
NumLines = linecount(NameTxt);
tfile = GenerateFileName(NumPortic,NumComb);
fin = fopen(NameTxt,'r');
fout = fopen(tfile, 'w');
if i > 11.5 && i < NumLines - 2.5
Matrix = readmatrix(tfile);