Difference between revisions of "Sawtooth.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Returns a saw-tooth waveform. Syntax: waveform=sawtooth(amplitude,frequency,time_grid) Arguments: amplitude - amplitude at the tooth top frequency - ...")
 
(Update function See also links and function index membership)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
Returns a saw-tooth waveform. Syntax:
+
{{DISPLAYTITLE:sawtooth.m}} __NOTOC__
 +
Returns a saw-tooth waveform.
  
−
      waveform=sawtooth(amplitude,frequency,time_grid)
+
==Syntax==
  
−
Arguments:
+
    waveform=sawtooth(amplitude,frequency,time_grid)
 +
 
 +
==Parameters==
  
 
       amplitude  -  amplitude at the tooth top
 
       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==
  
−
      frequency  -  waveform frequency in teeth per second
+
  >> t=linspace(0,1,1000);
 +
  >> w=sawtooth(1,10,t);
 +
  >> plot(t,w);
 +
 
 +
[[File:sawtooth.png]]
 +
 
 +
==See also==
 +
[[pulse_shape.m]], [[triwave.m]], [[vg_pulse.m]], [[shaped_pulse_xy.m]], [[shaped_pulse_af.m]], [[bruker_write.m]], [[cartesian2polar.m]], [[chirp_pulse.m]], [[grad_pulse.m]], [[grad_sandw.m]], [[pmlg5.m]], [[polar2cartesian.m]], [[read_wave.m]], [[restrans.m]], [[rseq_compiler.m]], [[rsequence.m]], [[sech_pulse.m]], [[spinal.m]], [[wave_basis.m]], [[Kernel_functions]]
  
−
      time_grid  -  grid of time points, seconds
+
''Version 2.4, authors: [[Ilya Kuprov]]''

Latest revision as of 18:41, 6 June 2026

Returns a saw-tooth waveform.

Syntax

    waveform=sawtooth(amplitude,frequency,time_grid)

Parameters

     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, bruker_write.m, cartesian2polar.m, chirp_pulse.m, grad_pulse.m, grad_sandw.m, pmlg5.m, polar2cartesian.m, read_wave.m, restrans.m, rseq_compiler.m, rsequence.m, sech_pulse.m, spinal.m, wave_basis.m, Kernel_functions

Version 2.4, authors: Ilya Kuprov