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: Calculation of more then two matrices
Replies: 4   Last Post: Jan 24, 2013 9:48 PM

Advanced Search

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

Posts: 7,881
Registered: 6/7/07
Re: Calculation of more then two matrices
Posted: Jan 24, 2013 9:48 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/24/2013 7:20 PM, Paul wrote:
...

> Oh I'm sorry,
> yeah you're right: 8 (maximum in matrix 3) / 2 (minimum in matrix 2) = 4!
> The rule should be that to look for the maximum and minimum value in all
> matrices in comparison. Then, depending on these, the division is
> calculated. I'll probably need a loop so that this series for each /
> split-entry is performed.calculate each row/coloum-value.


m(:,:,1)=a;
m(:,:,2)=b;
m(:,:,3)=c;
r=max(m,[],3)./min(m,[],3);

--




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.