3d, semi parametric equations

1 次查看(过去 30 天)
Toby Silver
Toby Silver 2021-4-27
I have a complicaded equation i would like to 3D surface plot but have no idea how to start
heres my attempt so far.
Nmax = 1;
N0 = 2;
Zmax = 3;
Z0 = 1;
T = 1;
fc = 200; %cutoff freq
wc = fc*pi;
c = 343;
kc = wc/c;
l = 0.2; %m
Sd = pi*0.025^2;
zlist = linspace(0,1,1000);
tlist = linspace(0,2*pi,1000);
x = zeros(1000);
y = zeros(1000);
x = ((cosh(kc*z)+T*sinh(kc*z))./(gamma(1+l./(z*Nmax+(l-z)*N0)))).*...
(sqrt((l*Sd*gamma(1+(2*l)./(z*Nmax+(l-z)*N0)))/(z*Zmax+(l-z)*Z0))).*...
(((abs(cos(t))).^((2*l)./(z*Nmax+(l-z)*N0))).*sign(cos(t)));
y = ((cosh(kc*z)+T*sinh(kc*z))./(gamma(1+l./(z*Nmax+(l-z)*N0)))).*...
(sqrt((l*Sd*gamma(1+(2*l)./(z*Nmax+(l-z)*N0)))/(z*Zmax+(l-z)*Z0))).*...
((z*Zmax+(l-z)*Z0)/l).*...
(((abs(sin(t))).^((2*l)./(z*Nmax+(l-z)*N0))).*sign(sin(t)));
plot3(x,y,z)

回答(1 个)

Shubham Khatri
Shubham Khatri 2021-5-10
Hello,
I tried the code at my end, I find that the code does not defines z and t. After defining the code with z and t, the code ran but without any observations. I suggest you break the formula in small chunks and then run.
Hope it helps

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by