开发者

Implementing sortrows in MATLAB

开发者 https://www.devze.com 2023-01-01 06:39 出处:网络
My question is related with the previous solved question in How to save data in .txt file in MATLAB.

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);.

0

精彩评论

暂无评论...
验证码 换一张
取 消