Get exact value from Scope cursor in Simulink

27 ビュー (過去 30 日間)
Jonas 2021 年 8 月 30 日
回答済み: Sahil Jain 2021 年 9 月 2 日
I am using the vertical Cursors in a Scope window to find the signal value. However, the value only displays three significant numbers behind the comma. In my example, it shows 2.202e+07:
Can I get the signal value with more significant numbers somehow? The signal in this case is actually a uint32 signal where each bit represents something, so I need to get the exact uint32 value.


Sahil Jain
Sahil Jain 2021 年 9 月 2 日
Hi Jonas. As of R2021a, it is not possible to increase the number of digits shown in the Scope block window. As a workaround, you can export the signals to the workspace (see "to workspace" block) and use the "format" function to set the format style to 'long' and print the values to the console.

その他の回答 (0 件)





Community Treasure Hunt

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

Start Hunting!

Translated by