We create plots from vectors x and y. Is the reverse possible? Can you first draw a curve using cursor in the figure palette and then create vectors x and y from it?

1 回表示 (過去 30 日間)
We create plots from vectors x and y. Is the reverse possible? Can you first draw a curve using cursor in the figure palette and then create vectors x and y from it?

採用された回答

KSSV
KSSV 2017 年 11 月 17 日
figure
axis([0 10 0 10])
N = 5; % number of poins
title('click anywhere') ;
[x,y] = ginput(N) ;
plot(x,y) ;

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by