Is it possible to plot two signals as x vs y graph in simulink, using s function or is there any other way other than the graph tool?

8 个评论

By graph tool, you mean XY Plot block in Simulink or something else? Is XY Plot acceptable or not for you?
Yes I meant the XY plot block. It was not plotting properly and it keep disappearing. So I felt that is not stable.
Actually it is stable and works pretty well in my cases. How do you use it in your model?
Can I send you the model for verification? Your mail Id please
You may share it from here, attach the model and send.
Attached is the file. I want to plot wind vs power
Two questions:
-What do you mean by it keep disappearing?
-Is it normal for you that your simulations runs so slow?
The plot just disappears after sometime. No the simulations are not that slow.

请先登录,再进行评论。

 采纳的回答

Birdman
Birdman 2018-1-29

0 个投票

After our discussion above, I am suggesting a different approach for xy plotting. It is much more efficient than it is in your model. I just save the data in structure format by using To Workspace block and by typing a single line of code in File->Model Properties->Callbacks->StopFcn, when the simulation is over, it automatically plots what you want. Just run the simulation and see the results. Hope this helps.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by