How do I plot a 3d shape from a function?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rowan Humphreys
il 19 Giu 2022
Commentato: Rowan Humphreys
il 24 Giu 2022
I have to plot the following function:
where [c1,c2,c3,c4] = [2.13,2.22,2.62,0.177]
Is there a way of doing this?
Thank you
0 Commenti
Risposta accettata
Hiro Yoshino
il 19 Giu 2022
x = -2:0.25:2;
y = x;
if you want to visualize this , then
surf(x,y,x.*exp(-x.^2 -(y').^2))
You can also perform the same thing by using meshgrid function - this might be easier for you to understand this..
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots 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!