Draw on plot using cursor

Hello, I'm trying to draw in some data on a plot that I have already created. Is there a way I could do this by clicking on the graph like you would in microsoft paint?
Thanks,
Sam

回答 (1 件)

bym
bym 2011 年 8 月 7 日

0 投票

you could try
[x,y] = ginput(2);
line(x,y)

カテゴリ

ヘルプ センター および File ExchangeData Exploration についてさらに検索

タグ

質問済み:

Sam
2011 年 8 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by