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