Simulink scope not working correctly

20 ビュー (過去 30 日間)
fef efef
fef efef 2020 年 8 月 14 日
回答済み: Abdolkarim Mohammadi 2020 年 8 月 14 日
Hello,
I am trying to use this circuit in MATLAB Simulink and instead of a straight line on the scope I get a circle. Can someone please tell me the problem here??
This is all I see in the below circuit
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 8 月 14 日
I suspect that you have a single data point and that the circle is the enabled marker highlighting the data.
You do not happen to show the source blocks for the GOTO1 that you have so we cannot say why you are only getting a single point.
Sara Boznik
Sara Boznik 2020 年 8 月 14 日
Maybe is not problem with the scope but with results you get it? That you get only one data point. You can write us about the your work in Simulink.

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

回答 (1 件)

Abdolkarim Mohammadi
Abdolkarim Mohammadi 2020 年 8 月 14 日
I created your model and I expected a constant line, but I also got a single marker. Do the following as a workaround:
In Constant block: change the sample time of the constant to -1.
In Scope block: go to View > Style. Change Plot type to Line and Marker to none.

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by