Why do I get a Simulink Data Inspector (SDI) plot that only shows one circle/point in R2021b?

17 views (last 30 days)
Whatever signal I am logging, I see only one point that looks like a stem plot in Simulink Data Inspector (SDI).
If I keep SDI open during simulation, the stem point moves up and down. I also noticed that there was a "t=..." time display in the top right corner. I restarted MATLAB but this behavior doesn't seem to go away.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 2 Dec 2021
Edited: MathWorks Support Team on 2 Dec 2021
It appears that the subplot is configured as an array plot which is a new R2021b feature:https://www.mathworks.com/help/simulink/ug/view-multidimensional-signals-using-the-array-plot.html
To change an array plot back to a regular time plot, click the Layout button then select "Edit View". From the Visualization Gallery, drag and drop the "Time Plot" icon onto a subplot.
You can also use the following command to reset SDI completely:
>> Simulink.sdi.clearPreferences
See the following page to learn more about Simulink.sdi.clearPreferences:

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!