Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Matrix manipulation/comparison
Replies: 3   Last Post: May 9, 2013 2:26 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Elnaz Sadeghian

Posts: 192
From: Tehran, Iran
Registered: 5/26/07
Matrix manipulation/comparison
Posted: May 9, 2013 10:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,
I have a big 3-D matix that I want to squueze into a 2-D one while picking up the values that are bigger in absolute magnitute in the third dimension:
[c,in]=max(abs(s),[],3);
x = s(:,:,in);
s is the 3D matrix of size 5 X 20480 X 2. So I want to squeeze it along the 3rd dimension by comparing the values.
I get the "out of memory" error. I don't want to use loops. How can I address this problem?

Thanks,
Elnaz



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.