Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1471
Number of posts: 2147

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
MATLAB C++ : struct mxArray_tag ** Posted by vincentsim on 27 Dec 2003 at 1:12 PM
hi everybody, I am facing one problem in my programming. I am doing MATLAB C++ programming.

//ORIGINAL MATLAB FUNCTION:
//function [features, targets] = imp(train_features, params)

//MATLAB C++ definition done by MATLAB PROJECT WIZARD
mxArray * mlfimp(mxArray * * targets, mxArray *train_features, mxArray * params)
{
........
return mlfReturnValue(features);
}



// when i try to call the implementation function in main
//program

mwArray *features, *targets, *x , *m1;
features = mlfimp( &targets, x, m1);

after compiling it shows
error C2664: 'mlfimp' : cannot convert parameter 1 from 'class mwArray *' to 'struct mxArray_tag **'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

what should i do in order to settle the parameter 1 variable in 'mlfimp'?

thank you for your all helping.
Happy New Year.

vincent sim




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.