![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/398389/image.png)
Why doesn't signal units propagate through blocks?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Proglet
am 31 Okt. 2020
Kommentiert: Walter Roberson
am 1 Nov. 2020
I just started to use the "signal units" feature on Simulink signals then I found that it doesn't go through my model. For example, I expect a signal in "Nm" of the output of a product block which has inputs of signals in "N" and "m". But it doesn't happen.
Am I missing something?
0 Kommentare
Akzeptierte Antwort
stozaki
am 31 Okt. 2020
Hello Proglet,
There are two inputs. One has the unit N and the other has the unit m. The unit Nm is obtained as the result of each multiplication.
However, the Product block does not automatically add units to the calculation result. This is a Simulink specification. If you want to give the unit explicitly, you need to set the unit attribute using Simulink.Signal object etc.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/398389/image.png)
stozaki
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Model Verification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!