Z
Z
ZaurK2021-12-01 10:01:07
MATLAB
ZaurK, 2021-12-01 10:01:07

How to plot Lame curves in octave or matlab?

Hello! I'm trying to draw Lame curves in octave like here , but only one branch is obtained. Tell me what I'm doing wrong?

% Кривые Ламе
n = 0.5
a = 1.0
b = 1.0
f = 0:pi/180:pi/2
x = a*cos(f).^(2/n)
y = b*sin(f).^(2/n)
figure()
plot(x, y)
grid on
axis equal
xlab = xlabel('Ось абсцисс Х');
ylab = ylabel('Ось ординат Y');
title('Кривые Ламе');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
U235U235, 2021-12-01
@U235U235

f = 0:pi/180:2*pi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question