Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jontas

    How can I plot a 2D gauss function

    I've tried something like this but ..DOoH!!! Not the result I was hoping for. ****** CODE ****** r = 5; teta = 0; Amax = 611; As = 0.255; At = 0.2068; x = [0:10]; y = [0:10]; [X, Y] = meshgrid(x,y); s = (X.*cos(teta)) + (Y.*sin(teta)) -r; t = -X.*sin(teta) + Y.*cos(teta); %[S, T] =...
  2. jontas

    How can I plot a 2D gauss function

    I'm trying to plot or get a surface of this 2D gaussian function. h = A * exp(-s^2/S) * exp(t^2/T) where s = x*cos(alpha) + y*sin(alpha) -r; t = -x*sin(alpha) + y*cos(alpha); A, , r, S, T, alpha are given!!!! I'm new to matlab and is not sure which plotting function to use or even how...

Part and Inventory Search