problem regarding plotting cuvres

1 次查看(过去 30 天)
I am supposed to plot 3 curves on the same figure, The first plot is ok( the red one ), but the other 2 I am getting 2 separated curves for each plot..is there any idea to help me solve this problem?
Thanks in advance.
  4 个评论
Walter Roberson
Walter Roberson 2022-4-15
How are you calculating the positions? Are you possibly using roots() or solve() or vpasolve() ?
SSBGH
SSBGH 2022-4-15
im just plotting 3 curves of a differential equation using 2 different approximation methods

请先登录,再进行评论。

采纳的回答

Torsten
Torsten 2022-4-15
编辑:Torsten 2022-4-15
Insead of using
plot(x,y)
try
[sorted_x,I] = sort(x);
sorted_y = y(I);
plot(sorted_x,sorted_y)
for the green and blue curves.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by