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: Not allowing complex values
Replies: 4   Last Post: May 21, 2011 11:20 AM

Advanced Search

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

Posts: 136
Registered: 6/28/08
Re: Not allowing complex values
Posted: May 20, 2011 2:44 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 20 Mag, 19:34, "Steven_Lord" <> wrote:
> "Allamarein" <> wrote in message

> > I would Matlab does not accept complex variables.
> > Thus I would declar every variable as 'double precision'.
> > If Matlab returns an error or a warning for complex values, this
> > trick  would save me by banal errors using inverse trigonometric
> > functions and square root.

> You know, you can check if a variable is complex or not using the ISREAL
> function.
> --
> Steve Lord
> To contact Technical Support use the Contact Us link on

Of course, but I should check every variables.
If I knew there is a bug in my code, I would eliminate it.
I only want Matlab is more rigorous, for example like Fortran

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.