Hello,
I'm trying to run the example "example_us_bmode_phased_array.m" but it doesn't work. I get an error in the scanConversion function:
Error using griddedInterpolant
The grid vectors do not define a grid of points that match the given values.
Error in interp2>makegriddedinterp (line 228)
F = griddedInterpolant(varargin{:});
Error in interp2 (line 128)
F = makegriddedinterp({X, Y}, V, method,extrap);
Error in scanConversion (line 90)
b_mode = interp2(r, 2 * pi * steering_angles ./ 360, scan_lines, r_cart, th_cart, 'linear');
Error in example_us_bmode_phased_array (line 296)
b_mode_fund = scanConversion(scan_lines_fund, steering_angles, image_size, c0, kgrid.dt);
I didn't change anything from the example so it makes no sense to me. As the simulation takes hours, I'm setting the RUN SIMULATION option to false, so it loads the scan lines directly from file. The error is only in the conversion from cartesian to polar coordinates to create the Bmode image.
If anyone else had this problem, I would really appreciate some help :)