From: Ananth Gopal on 26 May 2010 15:44 Hi, I am trying to call one mex file from another using mexCallMATLAB. The mex-file to be called is of the form: T = function(arg1,arg2,arg3) This mex file "function" has been tested to work well when called from MATLAB directly Lets say that I try using the following mex file to call "function"..... It does not seem to work... could someone help me out with what could be wrong??? void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { mxArray *hold[3], *t; int w; hold[0] = prhs[0]; hold[1] = prhs[1]; hold[2] = prhs[2]; w = mexCallMATLAB(1, t, 3, hold, "function"); } Thanks a lot Ananth
|
Pages: 1 Prev: trouble giving arguments to mexCallMATLAB Next: qr built in function |