Difference between revisions of "Triwave.m"
(Created page with "Returns a triangular waveform. Syntax: waveform=triwave(amplitude,frequency,time_grid) Arguments: amplitude - amplitude at the tooth top frequency - ...") |
|||
| Line 1: | Line 1: | ||
| − | Returns a triangular waveform. Syntax | + | {{DISPLAYTITLE:triangular.m}} __NOTOC__ |
| + | Returns a triangular waveform. | ||
| + | |||
| + | ==Syntax== | ||
waveform=triwave(amplitude,frequency,time_grid) | waveform=triwave(amplitude,frequency,time_grid) | ||
| − | Arguments | + | ==Arguments== |
amplitude - amplitude at the tooth top | amplitude - amplitude at the tooth top | ||
| + | |||
| + | frequency - waveform frequency, Hz | ||
| + | |||
| + | 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=triwave(1,10,t); | ||
| + | >> plot(t,w); | ||
| + | |||
| + | [[File:triwave.png]] | ||
| + | |||
| + | ==See also== | ||
| + | [[chirp_pulse_xy.m]], [[chirp_pulse_af.m]], [[pulse_shape.m]], [[sawtooth.m]], [[vg_pulse.m]], [[shaped_pulse_xy.m]], [[shaped_pulse_af.m]] | ||
| − | |||
| − | + | ''Version 2.4, authors: [[Ilya Kuprov]]'' | |
Revision as of 16:43, 18 July 2019
Returns a triangular waveform.
Syntax
waveform=triwave(amplitude,frequency,time_grid)
Arguments
amplitude - amplitude at the tooth top
frequency - waveform frequency, Hz
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=triwave(1,10,t); >> plot(t,w);
See also
chirp_pulse_xy.m, chirp_pulse_af.m, pulse_shape.m, sawtooth.m, vg_pulse.m, shaped_pulse_xy.m, shaped_pulse_af.m
Version 2.4, authors: Ilya Kuprov
