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
采纳的回答
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 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!