Plotting an Archimedean Spiral
Ältere Kommentare anzeigen
r = 12.5; %outer radius
a = 0; %inner radius
b = 0.01; %incerement per rev
n = (r - a)./(b); %number of revolutions
th = 2*n*pi; %angle
Th = linspace(0,th,1250*720);
x = (a + b.*Th).*cos(Th);
y = (a + b.*Th).*sin(Th);
plot(x,y)
The code executes well r, a, n and b are correct. Th and th both are also correct, but the problem which arises is in the values of x and y.
outer value or last value (desired) should be 12.5, but after execution it gives 78.53 and same corresponds to y.
what can be the solutions of this problem?
5 Kommentare
KALYAN ACHARJYA
am 15 Okt. 2019
Is your plot not an Archimedean Spiral? or ??
Rajbir Singh
am 15 Okt. 2019
KALYAN ACHARJYA
am 15 Okt. 2019
Then what is the problem?
Rajbir Singh
am 15 Okt. 2019
Bearbeitet: Rajbir Singh
am 15 Okt. 2019
Rajbir Singh
am 16 Okt. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Hypothesis Tests finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
