Markers enabled to highlight data

35 ビュー (過去 30 日間)
Andrea Wrona
Andrea Wrona 2020 年 6 月 18 日
コメント済み: Bowen 2023 年 6 月 9 日
Good afternoon,
I get a weird error in Simulink when trying to plot a constant inside a scope: it shows me only a circle at time=0, and not the straight horizontal line. Can anybody please tell me how to avoid this situation? I have already tried to change the plot style by changing the marker "o" into "none", but I did not succeed.
  3 件のコメント
Wenjie Zhang
Wenjie Zhang 2020 年 8 月 7 日
hi body,you can see this,it will help you
https://ww2.mathworks.cn/matlabcentral/answers/508963-scope-does-only-show-one-data-point#answer_418530
Bowen
Bowen 2023 年 6 月 9 日
Thank you. The is the important website where I solve the same problem puzzling me for a long time. To be honest, I do not like such a design of MATALB2023.

サインインしてコメントする。

回答 (2 件)

思邈 周
思邈 周 2020 年 12 月 10 日
The correct answer from the @Fangjun Jiang:
“Can someone from the Mathworks give an explaination of this change on the Scope block? I've answered questions similar to this twice before. I think the "smartness" of the Scope block actually confused user.
In this extream simple example, in the Scope window, go to menu View, Style, you will see the "Marker" is set as "o". That is why. Usually, it is set as "none". But in this case, even if you set it as "none" and click "Apply", when you run simulation again, it will automatically go back to "o" and still show the same plot with just one dot.
It is the correct display, considering that the Scope is connected to the Constant block. But that is probabbly another lengthy discussion. If you want to show the "tradictional" view, you can change the sample time of the Constant block from "inf" to "-1", then you will see a horizontal line. You can further play with the setting on "Marker".
I think whatever the default behavior of the Scope with values of "inf" sample time is confusing users.”

Chaitanya Mallela
Chaitanya Mallela 2020 年 8 月 20 日
Refer Constant Sample Time section in the documentation

カテゴリ

Help Center および File ExchangeClassical Control Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by