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: Multiplying Double and a Logical
Replies: 5   Last Post: Jun 21, 2012 10:25 AM

Advanced Search

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

Posts: 11
Registered: 6/18/12
Re: Multiplying Double and a Logical
Posted: Jun 18, 2012 10:26 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Alright,

I tried using

>> plot(x(l),y(l))
>> x=[1 2 3 NaN];

y=[1 3 5 7];
l=logical(1 1 0 1);
plot(x(l),y(l))

and I got an error:

l=logical(1 1 0 1);
|
Error: Unexpected MATLAB expression.

Just to be clear I think what you've told me to do is EXACTLY what I want. The logical structure will filter information out I don't want!

Thank for the help, but if you know how to alleviate this error it would be most helpful! I"m reading the Log SS section now!

Thank you

-Michael



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.