k-Wave Toolbox |
![]() ![]() |
Create an enveloped single frequency tone burst
signal = toneBurst(sample_freq, signal_freq, signal_length, signal_offset, num_cycles) signal = toneBurst(sample_freq, signal_freq, signal_length, signal_offset, num_cycles,...)
toneBurst
creates an enveloped single frequency tone burst for use
in ultrasound simulations. If an array is given for signal_offset
,
a matrix of tone bursts is created where each row corresponds to a
tone burst for particular value of the signal_offset
. For example, running
toneBurst(10e6, 1e6, 300, 50, 10, 'Plot', true);
will return and plot a 10 cycle tone burst with a Gaussian envelope.
|
sampling frequency [Hz] |
|
signal frequency [Hz] |
|
signal length in number of samples |
|
signal offset before the tone burst in number of samples |
|
number of sinusoidal oscillations |
Optional 'string', value pairs that may be used to modify the default computational settings.
Input | Valid Settings | Default | Description |
---|---|---|---|
|
|
|
Envelope used to taper the tone burst. |
|
(boolean scalar or two element vector) |
|
Boolean controlling whether the created tone burst is plotted. |
|
created tone burst |
![]() |
speedSoundWater | unmaskSensorData | ![]() |
© 2009, 2010 Bradley Treeby and Ben Cox.