Matlab Interpolation

Discussion in 'Programmer's Corner' started by Dritech, Mar 12, 2015.

  1. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    756
    5
    Hi all,

    Can someone please tell me how I can interpolate this graph on Matlab:

    T = 1/200; % T is the sampling period in seconds. Since we will sample @ 200Hz, therefore T=1/f
    nmin = ceil(tmin / T);
    nmax = floor(tmax / T);
    n = nmin:nmax; % n is the sampling number


    % plot 10sin(660*pi*t) samples
    wave_samples = 10*sin(660*pi*n*T);
    plot(n*T,wave_samples)
    hold on % do not overwrite on graph, just add add on it


    Thanks in advance.
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,397
    497
    tmin?
    tmax?
     
  3. Dritech

    Thread Starter Well-Known Member

    Sep 21, 2011
    756
    5
Loading...