How to pass string to matlab function in C programs

1 vue (au cours des 30 derniers jours)
Ruixue Zhang
Ruixue Zhang le 7 Sep 2012
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 commentaires
TAB
TAB le 7 Sep 2012
Why same repeated question ?
Ruixue Zhang
Ruixue Zhang le 7 Sep 2012
Have no idea about it, I just edit it.

Connectez-vous pour commenter.

Réponses (1)

José-Luis
José-Luis le 7 Sep 2012
Modifié(e) : José-Luis le 9 Sep 2012
An mxArray can also contain a string. An mxArray is a structure that wraps everything (nicely?):

Catégories

En savoir plus sur Deploy to C++ Applications Using mwArray API (C++03) dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by