- 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
조회 수: 20 (최근 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
채택된 답변
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
추가 답변 (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!