How to plot this kind of figures?

1 次查看(过去 30 天)
Chaou
Chaou 2013-5-13
Hello, I'm trying to plot figures like this:
Can you, please, help me out with the code to plot figure which doesn't passe through all the points. How can I also obtain this kind of legend? Thank you very much.

回答(1 个)

Honglei Chen
Honglei Chen 2013-5-13
Here is an example
plot((1:10)+randn(1,10),'b*');
hold on;
plot(1:10,'b-');
legend(' ','A');

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by