Stateflowに​おいて、string​型(ダブルクォーテー​ションで囲まれた文字​列)の使用はサポート​されていますか?

9 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 25 de Ag. de 2024
Respondida: MathWorks Support Team el 25 de Ag. de 2024

MATLAB R2021aで、string型(ダブルクォーテーションで囲まれた文字列)をつかって、StateFlowブロック自動生成をしましたが、エラーになります。

sfnew
rt = sfroot;
chart = find(rt,"-isa","Stateflow.Chart");
エラー: Simulink.Root/find
パラメーター/値のペアの引数が無効です。

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 25 de Ag. de 2024
MATLAB R2021bからStateflowにおいて、string型(ダブルクォーテーションで囲まれた文字列)の使用がサポートされております。
chart = find(rt,"-isa","Stateflow.Chart");
・MATLAB R2021bのリリースノート参照
https://jp.mathworks.com/help/releases/R2021b/stateflow/release-notes.html?rntext=&startrelease=R2021b&endrelease=R2021b&groupby=release&sortby=descending&searchHighlight=
MATLAB R2021aにおいては、string型は未対応の為、エラーになります。
MATLAB R2021aでは、従来のシングルコーテーションで囲まれた文字列指定になります。
chart = find(rt,'-isa','Stateflow.Chart');
・MATLAB R2021aのStateflow.Chartのドキュメント:
https://jp.mathworks.com/help/releases/R2021a/stateflow/api/stateflow.chart.html

Más respuestas (0)

Categorías

Más información sobre Simulink Function en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!