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 comparison
Replies: 3   Last Post: Feb 5, 2013 1:29 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,868
Registered: 6/7/07
Re: matrix comparison
Posted: Feb 5, 2013 9:04 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2/5/2013 12:42 AM, Sheshjee wrote:
> I have two matrices varValues and Th, i have two compare each element of
> both matrices in sauch a way that
> if varValues(i,j)>=Th(i,j)
> then whatever element i get , store it in another matrix CAA.

...

I'll presume "it" refers to the varVal() array...

One way to construct the array

C=varV; C(varV<Th)=0;

NB: the NaN won't compare--they'll propogate thru as NaN also.

--



Date Subject Author
2/5/13
Read Re: matrix comparison
dpb
2/5/13
Read Re: matrix comparison
dpb

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.