Plot a VS graph from simulink scope to Matlab
18 次查看(过去 30 天)
显示 更早的评论
So, i build a dc motor. I want to plot a dc characteristic curve which are Torque Vs Speed, Torque Vs Armature Current and Speed Vs armatur current. How to plot this graph from simulink scope. I already connected to workspace but i stuck on how to proceed from matlab part. Its quite confusing.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/278395/image.png)
0 个评论
回答(3 个)
Fangjun Jiang
2020-3-20
Simulink Scope is always time based so the x-axis is always time. If you want Torque vs Speed, you need to use the "XY Graph" block. In MATLAB, you just run plot(Ws,T), assume the "Ws" and "T" saved in that "To Workspace" blcok are saved in array format and they have the same size.
Sara Nadeau
2020-3-20
If you're working in R2019b or R2020a, you could use the XY visualization in the Simulation Data Inspector as well: Visualize Simulation Data on an XY Plot.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!