Triwave.m

From Spinach Documentation Wiki
Jump to: navigation, search

Returns a triangular waveform. Syntax:

     waveform=triwave(amplitude,frequency,time_grid)

Arguments:

     amplitude  -  amplitude at the tooth top
     frequency  -  waveform frequency, Hz
     time_grid  -  vector of time points, seconds