The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Sorting of multidimensional matrix
Replies: 3   Last Post: Feb 6, 2013 5:58 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Muhammad Imran

Posts: 63
Registered: 5/31/12
Re: Sorting of multidimensional matrix
Posted: Feb 6, 2013 5:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"M@lik Ali" wrote in message <kespqs$7vm$>...
> "M@lik Ali" wrote in message <keskec$j3n$>...
> > I have a matrix like below
> >
> > fset(:,:,1) = rand(5,16);
> > fset(:,:,2) = rand(5,16);
> > fset(:,:,3) = zeros(5,16);
> >
> > i sorting as
> > [sorted_fset iundex]= sort(fset,3);
> > My problem is i have 999 small matrix in a big matrix like this
> > means fset(:,:,i),i=1,2,3,4....999
> > I represent the each image actually,
> > now when i sort the matrix it sort for me but i cannot recognize the index of each image.
> > Like in above case fset(:,:,3) will be fset(:,:,1) but actually it was 3, so how can i recognize the image index after sorting in this case. if any confusion please comment

> Please help me out, if there is any confusion can ask again.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.