avatar
t*i
1
Hi,
How to put several curves on same figure in Matlab? The points may not have
same X coord.
For example:
Curve 1: (0.1, 5) (0.2, 6) (0.3, 7) (0.4,8)
Curve 2: (0.15, 6) (0.25, 7) (0.35, 8) (0.45,10)
Thanks!
avatar
c*e
2
hold on?

【在 t*****i 的大作中提到】
: Hi,
: How to put several curves on same figure in Matlab? The points may not have
: same X coord.
: For example:
: Curve 1: (0.1, 5) (0.2, 6) (0.3, 7) (0.4,8)
: Curve 2: (0.15, 6) (0.25, 7) (0.35, 8) (0.45,10)
: Thanks!

avatar
t*i
3
Thanks a lot!

【在 c*******e 的大作中提到】
: hold on?
avatar
r*y
4
For this one, no need to use hold on.
Let
x1 = 0.1:0.1:0.4; y1 = 5:8;
x2 = ...; y2 = ...
plot(x1, y1, x2, y2)
by default, the first curve is blue, the second is green, the third is red,
the fourth is cyan, bla bla...


【在 t*****i 的大作中提到】
: Hi,
: How to put several curves on same figure in Matlab? The points may not have
: same X coord.
: For example:
: Curve 1: (0.1, 5) (0.2, 6) (0.3, 7) (0.4,8)
: Curve 2: (0.15, 6) (0.25, 7) (0.35, 8) (0.45,10)
: Thanks!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。