Hi,
I am working through the Homogeneous Propagation Medium Example but get this error when I run the example .m file:
Arrays have incompatible sizes for this operation.
Error in kspaceFirstOrder2D (line 920)
ux_sgx = dt .* rho0_sgx_inv .* real(ifft2( bsxfun(@times, ddx_k_shift_pos, kappa .* fft2(p)) )) / 2;
^
Error in example_ivp_homogeneous_medium (line 67)
sensor_data = kspaceFirstOrder2D(kgrid, medium, source, sensor);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
So far, I have installed MATLAB R2025a, installed k-wave from add-ons, opened the example_ivp_homogeneous_medium.m file in the MATLAB editor, and run the code.
If someone could tell me what I am doing wrong, I would appreciate it.