Info
此问题已关闭。 请重新打开它进行编辑或回答。
Why are these plots different?
4 次查看(过去 30 天)
显示 更早的评论
I understand why the xlabel is different, but I don't understand why the image is different, while structurally appearing the same. I'm using a uniform time step for my algorithm (h = 0.01). t,z are both 22401x1 doubles. plot(z) leads to the first image, plot(t,z) leads to the second.


0 个评论
回答(1 个)
Jan
2018-6-1
The diagrams are different, because the scaling differs. This is exactly what is expected, when you define the x component of the data or omit this information. Therefore it is not clear, what your question is. You draw two different things, then you can expected, that they look different. To get the same output, you can equalize the scaling and limits:
subplot(1,2,1);
plot(z)
axis tight
subplot(1,2,2);
plot(t,z)
axis tight
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!