How can I draw infinite concentric ellipses with centre (0,0) at an interval of 0.001 upto half axis lengths of 5
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Laxmi Akshaya Thela
el 14 de Feb. de 2021
Comentada: Star Strider
el 15 de Feb. de 2021
0 comentarios
Respuesta aceptada
Star Strider
el 14 de Feb. de 2021
Experiment with this to get the result you want:
elps = @(r,rr) [r*cos(linspace(0,2*pi)); r*rr*sin(linspace(0,2*pi))]; % Ellipse Vectors
N = 25; % Number Of Ellipses
r = linspace(0,1,N)*0.001; % Initial Radius
rratio = 1/2.5; % Radius Ratio
figure
hold on
for k = 1:N
e = elps(r(k),rratio);
plot(e(1,:), e(2,:))
end
hold off
axis('equal')
.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!