How to plot this kind of figures?

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일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2013년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by