# 3d, semi parametric equations

3 visualizzazioni (ultimi 30 giorni)
Toby Silver il 27 Apr 2021
Risposto: Shubham Khatri il 10 Mag 2021
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)
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposte (1)

Shubham Khatri il 10 Mag 2021
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
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su Axis Labels in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by