Hi,
There is a minor mistake in 'example_us_bmode_linear_transducer.m', that caused the b-mode image to be displayed incorrectly. The time array is shifted by t0 (half a pulse length), implemented as:
t0 = length(input_signal) * kgrid.dt / 2;
r = c0 * ( (1:length(kgrid.t_array)) * kgrid.dt/ 2 - t0); % [m]
However, this should be (t0 included within brackets):
t0 = length(input_signal) * kgrid.dt / 2;
r = c0 * ( (1:length(kgrid.t_array)) * kgrid.dt - t0)/ 2 ; % [m]
Kind regards,
Sjoerd