Course Links

                           

Back

Dr. Herman's Notes

Caustics

Complex Analysis Texts

Vibrations

Green's Functions

Maple Files

Other Links

MathCAD

MATLAB

  • MATLAB Basics: HTML
  • Using MATLAB
  • Knobel's Matlab Files or here
    To use: Put these files in the Work subfolder in the MATLABR11 Directory
    In the MATLAB Command Window type one of: wvmovie, wvslice, wvsurf. 

    Or, enter the following commands

Enter the function and grid:
x=-10:0.1:10; 
t=0:0.3:6;
[X,T]=meshgrid(x,t);
u = exp(-(X-T).^2);

For Animation:
M = moviein(length(t));

for
j=1:length(t),

    plot(x,u(j,:)),
    M(:,j)=getframe;

end
;

movie(M)

For slices
waterfall(x,t,u)

For surface plots
surf(x,t,u)

For density plots
pcolor(x,t,u)

Or do them all at once from an m-file

 


E-Mail: Dr. Russell Herman Last Updated: February 21, 2006