Is there a helper mex function for printing the contents of an mxArray?
조회 수: 2 (최근 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!