Just installed k-wave and added the right path. Unfortunately, all examples give the following error:
Unrecognized function or variable 'dt'.
Error in kspaceFirstOrder1D (line 615)
ux_sgx = pml_x_sgx .* ( pml_x_sgx .* ux_sgx - dt .* rho0_sgx_inv .* real(ifft(ddx_k .* shift_pos .* kappa .* p_k)) );
Error in example_ivp_1D_simulation (line 63)
sensor_data = kspaceFirstOrder1D(kgrid, medium, source, sensor, 'PlotLayout', true);
Also in cases of kspaceFirstOrder2D and kspaceFirstOrder3D. Even in cases where a dt is defined.