EggEquation

版本 1.0.0 (1.6 KB) 作者: Dirk-Jan Kroon
Universal formula for egg shape. Narushin et Al.
14.0 次下载
更新时间 2022/4/14

查看许可证

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;

引用格式

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

MATLAB 版本兼容性
创建方式 R2021a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0