XY graph and Plot graph are differnet

조회 수: 3 (최근 30일)
Minjae Yoo
Minjae Yoo 2019년 12월 30일
답변: Jesús Zambrano 2020년 1월 10일
Hello,
I have made XY graph on Simulink.
and I have collected x, y axis data of XY graph to workspace.
but, when I tried draw same graph with plot() function, graph was totally different.
anyone know the reason ?
Could you give some advice ?
left one is from XY graph block directly on Simulink. and right one is plot() from same data.
how Could I draw plot() graph as same with XY plot ?
  댓글 수: 1
darova
darova 2019년 12월 30일
Looks like you collected wrong data. Can you attach the script?

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

답변 (1개)

Jesús Zambrano
Jesús Zambrano 2020년 1월 10일
Hi Minjae,
That is not possible. Make sure you select the same data in both cases. Try to plot each variable in a separate plot. You should get the same plot in both cases, as in the example shown below:
XYgraph.png

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by