Difference between revisions of "Sawtooth.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
Line 31: Line 31:
  
 
[[Kernel_functions#Shaped_pulses_and_gradients|Shaped pulses and gradients]]
 
[[Kernel_functions#Shaped_pulses_and_gradients|Shaped pulses and gradients]]
−
 
  
 
''Version 2.4, authors: [[Ilya Kuprov]]''
 
''Version 2.4, authors: [[Ilya Kuprov]]''

Revision as of 11:29, 25 April 2026

Returns a saw-tooth waveform.

Syntax

    waveform=sawtooth(amplitude,frequency,time_grid)

Arguments

     amplitude  -  amplitude at the tooth top

     frequency  -  waveform frequency in teeth per second

     time_grid  -  grid of time points, seconds

Outputs

     waveform   -  waveform array of the same shape
                   as the time_grid input

Examples

 >> t=linspace(0,1,1000);
 >> w=sawtooth(1,10,t);
 >> plot(t,w);

Sawtooth.png

See also

pulse_shape.m, triwave.m, vg_pulse.m, shaped_pulse_xy.m, shaped_pulse_af.m

Shaped pulses and gradients

Version 2.4, authors: Ilya Kuprov