- Variable 'label' is inside the function. It is not visible in the mask workspace.
- disp(label), not disp('label')
- Use the following code for "Icon"
Simulink Mask won't display parameter values
14 ビュー (過去 30 日間)
古いコメントを表示
I want my masked subsystem to display two parameter values, but for some reason it is only displaying the variable name. I am not sure what the problem is. Photos are attached.
0 件のコメント
回答 (1 件)
Fangjun Jiang
2024 年 7 月 19 日 16:26
Kp=get_param(gcb,"Kp");
Ki=get_param(gcb,"Ki");
str1="Kp="+Kp;
str2="Ki="+Ki;
label=[str1;str2];
disp(label)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Subsystems についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!