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: 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: 206
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?


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.