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: unable to use syms and atan2 together
Replies: 7   Last Post: May 23, 2014 8:12 AM

Advanced Search

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

Posts: 323
Registered: 2/24/09
Re: unable to use syms and atan2 together
Posted: May 23, 2014 8:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 22.05.14 23:05, Jannick wrote:

> actually I do it this way: in stead of writing q = c.a; w=c.b I use to import the sym structure using EVAL. So the code becomes q=eval(c.a);w=eval(c.b);
> Doing so q and w's datatype will be a double.

Unless your solution contains things where eval simply does not work
(for other solve inputs). You might want to try q=double(c.a) instead,
which is the supported way of converting sym into double.



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.