GETPULSE Get the transmit pulse
GETPULSE returns the one-way or two-way transmit pulse.
Contents
Syntax
PULSE = GETPULSE(PARAM,WAY) returns the one-way or two-way transmit pulse with a time sampling of 1 nanosecond. Use WAY = 1 to get the one-way pulse, or WAY = 2 to obtain the two-way (pulse-echo) pulse.
PULSE = GETPULSE(PARAM) uses WAY = 1.
[PULSE,t] = GETPULSE(...) also returns the time vector.
The structure PARAM
PARAM is a structure that contains the following fields:
- PARAM.fc: center frequency (in Hz, required)
- PARAM.bandwidth: pulse-echo 6dB fractional bandwidth (in %). The default is 75%.
- PARAM.TXnow: number of wavelengths of the TX pulse (default: 1)
- PARAM.TXfreqsweep: frequency sweep for a linear chirp (default: [])
Example #1: Get the one-way pulse of a phased-array probe
This example shows the default transmitted (one way) pulse that is simulated with the 'P4-2v' phased-array probe.
Get the parameters of the 2.7-MHz cardiac phased array with GETPARAM.
param = getparam('P4-2v');
Get the one-way transmit pulse with GETPULSE.
[pulse,t] = getpulse(param);
Display the pulse.
plot(t*1e6,pulse) xlabel('{\mu}s') axis tight title('A transmit pulse')

Example #2: Check the pulse with a linear chirp
This example shows a linear chirp transmitted by a simulated linear array.
Get the parameters of the 7.6-MHz linear array with GETPARAM.
param = getparam('L11-5v');
Modify the fractional bandwidth.
param.bandwidth = 120;
Define the properties of the chirp
param.TXnow = 20; param.TXfreqsweep = 10e6;
Get the one-way transmit pulse with GETPULSE.
[pulse,t] = getpulse(param);
Display the pulse.
plot(t*1e6,pulse) xlabel('{\mu}s') axis tight title('A linear chirp')

See also
pfield, simus, pfield3, simus3, getparam
About the author
Damien Garcia, Eng., Ph.D. INSERM researcher Creatis, University of Lyon, France
websites: BioméCardio, MUST
Date modified