3d, semi parametric equations

1 回表示 (過去 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 Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by