Passing Strings as StateFlow Graphical Functions' parameters
이전 댓글 표시
Hi, I have developed a library of StateFlow Graphical Functions that act as wrappers for some C functions. In my C functions, I have to pass some String parameters but this is not allowed in StateFlow Graphical Functions. Is there a workaround for this?
PS: I also cannot use
ml.myStr='Say Something';
and then call:
mySFGF(ml.myStr);
Again, not allowed.
Thanks Ramtin
답변 (1개)
Teresa Hubscher-Younger
2026년 4월 6일 19:59
0 개 추천
Have you tried passing it as a local string variable? (See https://www.mathworks.com/matlabcentral/answers/460237-stateflow-passing-strings-as-input-to-graphical-functions)
-Teresa
카테고리
도움말 센터 및 File Exchange에서 Decision Logic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!