Plot a VS graph from simulink scope to Matlab

조회 수: 44 (최근 30일)
imran muhd
imran muhd . 2020년 3월 20일
답변: Jaimin . 2022년 12월 13일
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.

답변 (3개)

Fangjun Jiang
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.
  댓글 수: 1
imran muhd
imran muhd 2020년 3월 21일
thanks, this work jus fine

댓글을 달려면 로그인하십시오.

Sara Nadeau
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.

Jaimin 2022년 12월 13일


Help CenterFile Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by