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 th开发者_开发问答e 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 A is a cell array whereas C is a matrix. So, if you want to get rid of the sortrows, try replacing it with B=cell2mat(A);.
加载中,请稍侯......
精彩评论