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: Problem with mxGetData
Replies: 2   Last Post: Apr 8, 2013 7:50 PM

Advanced Search

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

Posts: 190
From: Tehran, Iran
Registered: 5/26/07
Problem with mxGetData
Posted: Apr 8, 2013 6:39 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I'm trying to read a real valued double with:
double x;
x = mxGetData(prhs[0]);

When compiling in MATLAB I receive:
error C2440: 'type cast' : cannot convert from 'void *' to 'double'

I just want to pass a double value to my function and read it. How can I do this?

Thanks,
Elnaz



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.