How to refresh the data in polar plot

6 ビュー (過去 30 日間)
Tharindu Weerakoon
Tharindu Weerakoon 2014 年 12 月 26 日
コメント済み: Robert 2016 年 11 月 3 日
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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 12 月 26 日
編集済み: Azzi Abdelmalek 2014 年 12 月 26 日
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 件のコメント
Tharindu Weerakoon
Tharindu Weerakoon 2015 年 1 月 21 日
Thanks Azzi. Done it.
Robert
Robert 2016 年 11 月 3 日
really not a good way to do this but i have yet to find a better one

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolar Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by