Suppose I creeated a 2-column array of double like this:

'\r\n')

array =

[1715x1 double] [1715x1 double]

Now I want have this array sorted by first column. When I try sort:

------------------------------

??? Error using ==> cell.sort

Input argument must be a cell array of strings.

------------------------------

Now, when I try sortrows:

------------------------------

??? Error using ==> cell.sort

Input argument must be a cell array of strings.

Error in ==> sortrows>sort_back_to_front at 134

[v,ind] = sort(x(ndx,k));

Error in ==> sortrows at 100

ndx = sort_back_to_front(x_sub);

------------------------------

What am I doing wrong?

textscan returns cell arrays. You need a numerical array to do this.

array =

[4x1 double] [4x1 double]

array2 =

4 5

2 8

3 3

1 9

sarray =

1 3

2 5

3 8

4 9

array =

[4x1 double] [4x1 double]

array2 =

4 5

2 8

3 3

1 9

sarray =

1 3

2 5

3 8

4 9

1. I am having trouble adding a poem....what am I doing wrong?

2. I am stupid and don't know what the heck I am doing wrong on t

3. My I's are coming up i's. (lower case)

4. What am I doing wrong? (SubForm Source?)

5. Gotorecord on Close_Form I don't know what I am doing wrong..

6. Passing Variables what am I doing wrong?

7. Newbie: What am I doing wrong?

9. ListView + GT Image control in form: Could somebody take a look what I am doing wrong?

11. Select Case - What am I doing wrong?

12. OpenRecordset error ... what am I doing wrong?

13. Gotorecord on Close_Form I don't know what I am doing wrong...

14. What am I doing wrong here?

2 post • Page:**1** of **1**