views:

84

answers:

1

Hi,

My question is related with the previous solved question in http://stackoverflow.com/questions/2925623/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{:}

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

Donnie
it doesn't work :(
Jessy
@Jessy - how about `B = [A{:}];`? Donnie's solution seems right. What error message do you get?
mtrw