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: Text data save
Replies: 7   Last Post: Oct 14, 2013 5:09 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 17,944
Registered: 12/7/04
Re: Text data save
Posted: Aug 20, 2013 11:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



"Debela " <bisaye@gmail.com> wrote in message
news:kv01sd$qkf$1@newscl01ah.mathworks.com...
> Hi all,
> I have a problem on analysis of big matrix data, it is 1600x3000. What I
> wanted to do is to select the maximum value of each raw and save it. For
> example, x=data(3,:); max(x); can give me the maximum value of 3rd raw
> out of 1600 but I want for all of them I tried a for loop and it is not
> really successful. Any help would be appreciated.
> Debela


Use the DIM input to the MAX function.

x = magic(7);
maxDownColumns = max(x, [], 1)
maxAcrossRows = max(x, [], 2)

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com




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.