How to pass string to matlab function in C programs
显示 更早的评论
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.
回答(1 个)
An mxArray can also contain a string. An mxArray is a structure that wraps everything (nicely?):
类别
在 帮助中心 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!