My question is related with the previous solved question in How to save data in .txt file in MATLAB.
my problem is that, I decided to unsorted the output, however this error comes out when I removed the sortrows—'Input files have different number of rows' And no error when I leave the sortrows
I’m curious why…is it related to the sortrows?
EDITED:
I retained the rest of the codes except I changed B to B=A{:}
Although I haven’t ran the code in the other post, it looks like
Ais a cell array whereasCis a matrix. So, if you want to get rid of thesortrows, try replacing it withB=cell2mat(A);.