how to display a string in simulink display block

조회 수: 17 (최근 30일)
sumit khot
sumit khot 2018년 2월 26일
답변: Shubham 2024년 9월 17일
In a simulink model ,i want to display the result in the display block of sinks library .result should be string,like if result is 1 than it should display on ,else if result is 0 it should display off.

답변 (1개)

Shubham
Shubham 2024년 9월 17일
Hey Sumit,
For displaying strings in your Simulink Model, you can use the "String Constant" blocks introduced in R2018a. Refer to the following model for manipulating your display output using a "Switch Block":
You may also modify the output using a MATLAB function block.
I hope this helps!

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by