Is there a helper mex function for printing the contents of an mxArray?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Kaustubha Govind
il 13 Giu 2013
Do you mean that you would like to call the DISP command from a MEX-function?
Risposte (1)
James Tursa
il 13 Giu 2013
E.g., the code for Kaustubha's suggestion:
mxArray *myvariable;
// code to fill in myvariable here
mexCallMATLAB(0,NULL,1,&myvariable,"disp");
1 Commento
Vedere anche
Categorie
Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!