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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Seetha Rama Raju Sanapala
am 17 Nov. 2017
Beantwortet: KSSV
am 17 Nov. 2017
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?
0 Kommentare
Akzeptierte Antwort
KSSV
am 17 Nov. 2017
figure
axis([0 10 0 10])
N = 5; % number of poins
title('click anywhere') ;
[x,y] = ginput(N) ;
plot(x,y) ;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!