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 で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!