Hello!
There is a file, where 50×50 values are written, all in all 2500 values. They are written like this:
12345......24992500
Therefore one value is in every string How to read data from this txt-file in Array A of dimension 25×25, so the first 25 values was the first row of the array, the second 25 second, and so on until the end?
Tried this:
fileI = fopen('file.txt','r');formatSpec = '%f';sizeA = [50 50];Vx = fscanf(fileI,formatSpec,sizeA);fclose(fileI);Vx=Vx';
But it does not work, the whole array fills with zero.
Thanks in advance!
Best Answer