MATLAB: How to plot the periodic function? please help

MATLABperiodic

how can I plot(t,Tg) or interpret Tg in t=(0:0.001:0.1n),n is a given positive integer ?
but it didn't work. plz help.

Best Answer

  • Tg = 2900 * size(t);
    tmod = mod(t, 0.1);
    mask = tmod > 0.007;
    Tg(mask) = A * exp(-B * tmod(mask));