How to pass string to matlab function in C programs
Mostrar comentarios más antiguos
Hi all,
I wanna pass string argument(such as the path name)to matlab function which is called in my C program. But I know matlab can only accept matrix as the input/output argument, such as mwArray or mxArray. So how to do that?
Thanks.
2 comentarios
TAB
el 7 de Sept. de 2012
Why same repeated question ?
Ruixue Zhang
el 7 de Sept. de 2012
Respuestas (1)
An mxArray can also contain a string. An mxArray is a structure that wraps everything (nicely?):
Categorías
Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!