The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 12
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


I tried using

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

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

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


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.