How to refresh the data in polar plot

조회 수: 3 (최근 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 CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by