How to refresh the data in polar plot
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tharindu Weerakoon
am 26 Dez. 2014
Kommentiert: Robert
am 3 Nov. 2016
I wanna refresh the data of polar plot with new data set.
How can I use set or refreshdata in the program?
I know how deal this with Cartesian plot, plot command.
for example:
x = linspace(0,8);
y = sin(x);
figure
h = plot(x,y);
h.XDataSource = 'x';
h.YDataSource = 'y';
y = sin(x.^3);
refreshdata
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 26 Dez. 2014
Bearbeitet: Azzi Abdelmalek
am 26 Dez. 2014
x = linspace(0,8);
y = sin(x);
[theta,rho] = cart2pol(x,y)
h=polar(theta,rho,'--r')
h.YDataSource = 'y';
y = sin(x.^3);
refreshdata
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!