Hi, I want to read a TXT file (this file has 35 columns and 351 rows) and save all the data to a matrix (35 x 351).
I'm trying with the following code:
formatSpec = '%d';sizeA = [351 35];A = fscanf(fileID,formatSpec,sizeA);
It creates the matrix (35 x 351) and saves the data, but no propperly.
What I want is, for example, read the first line of the TXT, then storage that line in the first row of the matrix.
Thanks
Best Answer