News and Information


  • Postscript Viewer Site

    MATLAB PROGRAM FOR PLOTTING FOURIER SERIES OF A SQUARE WAVE

    %
    % Illustrating that the Fourier series
    % approximation of a square wave
    %
    % Generate the square wave
    clear
    clf
    
    t=0:0.01:10;
    x = sign(sin(t));
    plot(t,x);
    hold on
    
    % Generate the Fourier Series Approximation
    n = input('Number of terms of Fourier Series = ');
    
    xa=zeros(1,length(t));
    for i=1:2:n,
            xa=xa+4/(i*pi)*sin(i*t);
    end;
    plot(t,xa,'r');
    
    
    From Monday the 13th, classes will be in NSM 218.

    Quiz on Monday, Oct. 11. at 10:00 AM.
    Mid-Term Exam on Monday, Nov. 1. at 6:00 PM in 104 Clemens
    Quiz on Monday, Nov. 22. at 10:00 AM.

    Final Exam on Dec. 10 (Fri.) at 6:00 PM in 210 Nat. Science .