EggEquation

Universal formula for egg shape. Narushin et Al.
15 Downloads
Updated 14 Apr 2022

View License

Egg and math: introducing a universal formula for egg shape. Narushin et Al.
y = EggEquation(x,L,w,B,DL4)
inputs:
L is length
W is the negative x-position where the egg is widest
B egg breadth, the width of the egg, at the x-position defined by W
DL4 Width of the egg at x-position Length/4
Example
L = 55
w = 10;
B = 35;
DL4 =25;
x = linspace(-L./2,L./2,L.*4);
y = EggEquation(x,L,w,B,DL4)
figure, hold on;
plot(x,y,'r');
plot(x,-y,'r');
plot([-w,-w],[-B/2,B/2],'g');
plot([L/4,L/4],[-DL4/2,DL4/2],'g')
grid on; axis equal;

Cite As

Dirk-Jan Kroon (2024). EggEquation (https://www.mathworks.com/matlabcentral/fileexchange/110060-eggequation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0