MATLAB Answers

How to show the Unit parameter in the signal attrbutes of a constant block?

1 ビュー (過去 30 日間)
Diaa
Diaa 2021 年 5 月 31 日
コメント済み: Diaa 2021 年 6 月 4 日
For the attached Simulink model I created using MATLAB R2021a, how can I show the Unit parameter in the block parameters of the constant block?

採用された回答

Fangjun Jiang
Fangjun Jiang 2021 年 6 月 1 日
There is no "unit" property at the Constant block. What you can do is to define a Simulink parameter object.
A=Simulink.Parameter
A.Value=1
A.Unit='m'
And then in your Simulink model, specify the value of the Constant block as A and you can display "Port Units" in Simulink.

その他の回答 (0 件)

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by