How to pass string to matlab function in C programs

조회 수: 6 (최근 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 CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by