Can anyone help me in this code? Only the first radius value is being taken everytime, its not getting incremented..... what change i have to do?
조회 수: 1 (최근 30일)
이전 댓글 표시
load data
theta=data(:,1);
radius=data(:,2);
t=length(radius);
for i=1:1:t;
%rho = radius(i)*ones(size(theta)) ;
rho(i)=radius(i);
%theta=theta(i);
end
for i=1:1:t;
rho = rho(i)*ones(size(theta)) ;
polar(theta,rho,'*')
end
댓글 수: 2
채택된 답변
Walter Roberson
2016년 11월 19일
You need
hold on
Inside the loop
댓글 수: 5
Walter Roberson
2016년 11월 21일
load data
theta = data(:,1);
radius = data(:,2);
rho = radius %just for display, not needed for computing
polar(theta, radius, '*')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!