Hi,
I have become very familiar with kspacePlaneRecon and kspaceLineRecon over the last year using matlab r2010a.
I have just recently changed to matlab r2012b, and installed k-wave v1.0. I saw the note that the mentioned reconstructions no longer work.
I believe I have fixed the issue for the kspacePlaneRecon, by interchanging interp3 with griddedInterpolant. I believe the other change is the removal of the asterisk, located prior to the interpolation method. e.g, replace '*nearest' with 'nearest'. This feature used to speed up the interp functions but has since been removed.
I have solved the problem for kspacePlaneRecon, I have the results from the matlab comparison of the original and my version of both kspacePlaneRecon and the Example_pr_3d_fft_planar_sensor. Is there a way to post these html files?
Here is a list of the changes I made to kspacePlaneRecon.
Line 106
replace with
interp_method = 'nearest';
Line 186
Replace with
F = griddedInterpolant( w,kgrid.ky, kgrid.kz, p, interp_method);
p=F(w_new,kgrid.ky, kgrid.kz);
Changes to example_pr_3D_FFT_planar_sensor.m
Line 95
F = griddedInterpolant(kgrid_recon.x - min(kgrid_recon.x(:)),kgrid_recon.y - min(kgrid_recon.y(:)), kgrid_recon.z - min(kgrid_recon.z(:)), p_xyz, 'nearest');
p_xyz_rs = F(kgrid_interp.x - min(kgrid_interp.x(:)), kgrid_interp.y - min(kgrid_interp.y(:)), kgrid_interp.z - min(kgrid_interp.z(:)));
I will shortly apply the equivalent to kspaceLineRecon and post it.
Is there a private message system for this forum, so I can organise to email my m files or comparison htmls. I can just post my email if there is not.