help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw an ellipse using Octave


From: Pantxo
Subject: Re: How to draw an ellipse using Octave
Date: Thu, 17 Jan 2019 08:22:22 -0600 (CST)

Or you can draw the ellipse yourself, which is not much longer:

rx = 10; ry = 2;

dx = linspace (0, rx, 100);
dy = ry*sqrt (1-(dx./rx).^2);

x = [dx fliplr(dx) -dx -fliplr(dx)];
y = [dy -fliplr(dy) -dy fliplr(dy)];
plot (x, y)

Pantxo




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]