3d, semi parametric equations

조회 수: 5 (최근 30일)
Toby Silver
Toby Silver 2021년 4월 27일
답변: Shubham Khatri 2021년 5월 10일
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에서 Axis Labels에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by