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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
L K
am 19 Nov. 2016
Kommentiert: L K
am 24 Nov. 2016
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 19 Nov. 2016
You need
hold on
Inside the loop
5 Kommentare
Walter Roberson
am 21 Nov. 2016
load data
theta = data(:,1);
radius = data(:,2);
rho = radius %just for display, not needed for computing
polar(theta, radius, '*')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!