Hi,
thanks for this amazing toolbox! I switched to K-Wave from Comsol for ultrasound applications, and find it way more adaptable thanks to the Matlab environment.
I'm developing a GUI to automatize the definition of the medium, and found that the plotting sequence in kspaceFirstOrder2D bugged when called from within a GUI.
To avoid that I had to change line 1205 to:
pbar=waitbar(t_index/length(t_array),pbar);
and add a call to a specific figure before line 1224, to avoid kspaceFirstOrder2D to plot in the GUI axis:
figure(500)
imagesc(kgrid.x(1,:)*scale, kgrid.z(:,1)*scale, p_plot, plot_scale);
Also, I'm working with low amplitude radiations of the main ultrasound wave, which would not appear in a standard "imagesc" plot, so I converted the plotted variable p_plot to a Decibel scale with a lower threshold at -50dB: it would be nice to have it integrated as an option in K-Wave!
Keep up the good work,
Claudio