Is there a helper mex function for printing the contents of an mxArray?
1 次查看(过去 30 天)
显示 更早的评论
I'm wondering if there is a helper mex function for printing the contents of an mxArray. Something similar to just typing a variable name in Matlab, e.g.:
>> A
A =
1 2 3 4
2 个评论
Kaustubha Govind
2013-6-13
Do you mean that you would like to call the DISP command from a MEX-function?
回答(1 个)
James Tursa
2013-6-13
E.g., the code for Kaustubha's suggestion:
mxArray *myvariable;
// code to fill in myvariable here
mexCallMATLAB(0,NULL,1,&myvariable,"disp");
1 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!