I installed the k-wave toolbox using MATLAB 7.10.0 and without changing anything attempted running both of these example scripts. Both of them threw the same error in the "smooth" curve-fitting function used by kspaceFirstOrder2D function that stated:
??? Error using ==> smooth at 131
X and Y must be the same length.
Error in ==> kspaceFirstOrder2D at 428
source.p0 = smooth(kgrid,source.p0,true);
Reading through the help guide it doesn't look like anything needs to be adjusted for these scripts to run properly. Am I missing something or is this a bug due to MATLAB version compatibility? Thanks.