just installed k-wave on Matlab 2016b (thanks a lot)
alas, cannot run any of the demos. here's a sample run/error
-------------------------------------------------------------
>> example_ewp_shear_wave_snells_law
Error using nargout
You can only call nargin/nargout from within a MATLAB function.
Error in kspaceFirstOrder_inputChecking (line 35)
if nargout == 2 && ~strcmp(calling_func(3).name, 'benchmark')
Error in kspaceFirstOrder2D (line 496)
kspaceFirstOrder_inputChecking;
Error in example_ewp_shear_wave_snells_law (line 103)
sensor_data_fluid = kspaceFirstOrder2D(kgrid, medium, source,
sensor, input_args{:});
35 if nargout == 2 && ~strcmp(calling_func(3).name, 'benchmark')
K>> dbclar if error
Undefined function or variable 'dbclar'.
35 if nargout == 2 && ~strcmp(calling_func(3).name, 'benchmark')
K>> dbclear if error
K>> dbcont
K>> dbcont
>> example_ewp_shear_wave_snells_law
Error using nargout
You can only call nargin/nargout from within a MATLAB function.
Error in kspaceFirstOrder_inputChecking (line 35)
if nargout == 2 && ~strcmp(calling_func(3).name, 'benchmark')
Error in kspaceFirstOrder2D (line 496)
kspaceFirstOrder_inputChecking;
Error in example_ewp_shear_wave_snells_law (line 103)
sensor_data_fluid = kspaceFirstOrder2D(kgrid, medium, source,
sensor, input_args{:});
---------------------------------
is this version incompatibility ?