How to pass string to matlab function in C programs

1 回表示 (過去 30 日間)
Ruixue Zhang
Ruixue Zhang 2012 年 9 月 7 日
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 件のコメント
TAB
TAB 2012 年 9 月 7 日
Why same repeated question ?
Ruixue Zhang
Ruixue Zhang 2012 年 9 月 7 日
Have no idea about it, I just edit it.

サインインしてコメントする。

回答 (1 件)

José-Luis
José-Luis 2012 年 9 月 7 日
編集済み: José-Luis 2012 年 9 月 9 日
An mxArray can also contain a string. An mxArray is a structure that wraps everything (nicely?):

カテゴリ

Help Center および File ExchangeDeploy to C++ Applications Using mwArray API (C++03) についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by