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: max from 4 matrices
Replies: 2   Last Post: Jul 11, 2013 12:50 AM

Advanced Search

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

Posts: 4
Registered: 5/29/11
max from 4 matrices
Posted: Jul 11, 2013 12:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi everyone!

I have to select one greater valve from first values of four matrices, then second greater value from second values and so on. just like this:
a=[2,5,4,6]
b=[0,7,5,3]
c=[5,3,2,1]
d=[1,4,7,6]

output should be:
z=[5,7,7,6]

I didn't used to with MATLAB. I have applied max() but it just works for 2 entries. Please any help!



Thanks &
Regards
Naila



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.