Plotting a Surface with ezsurf in MATLAB

  • Thread starter Thread starter lmannoia
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
lmannoia
Messages
30
Reaction score
0

Homework Statement


For a project for my calc 3 class, we have a small MATLAB assignment. The one question I can't plot is the surface (using ezsurf) f(x,y)=ye^-(x^2+y^2)


Homework Equations


i've tried ezsurf('y*e^(-x^2+y^2)') with syms x y and even syms x y e
I also tried ezsurf('y*e^-x^2-y^2')
Matlab tells me there are errors. What am I doing wrong?
Thanks in advance for the help!


The Attempt at a Solution

 
Physics news on Phys.org
Is 'e' in your equation is the exponential?
if it is so then you have to use the Matlab function exp()
 
worked perfectly; thanks so much!