Hello
I have a simply question.I would like to save the matrix 4D of pressure for all the Grid with using the kspaceFirstOrder3D function without changing this function.Is it possible and how ?
Thank you for your answer.
k-Wave
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
[3D simulation] save all the data of Grid
(4 posts) (3 voices)-
Posted 6 years ago #
-
Hi Guy,
I don't know if I well understand your question but if you want to record pressure for all the grid points at each time step you just need to use the full sensor :
sensor.mask = ones(Nx,Ny,Nz);
I hope it's that you asked.
Best regards,Alex
Posted 6 years ago # -
Hi math.guy,
Another option is to use a sensor mask cover the whole domain defined as cuboid corners, i.e.,
sensor.mask = [1; 1; 1; Nx; Ny; Nz];
This is equivalent to the approach mentioned by Alex, however, the output is instead a 4D matrix index as
(x_ind, y_ind, z_ind, t_ind)
.Brad.
Posted 6 years ago # -
Hi
Thank you for your help.
Math
Posted 6 years ago #
Reply
You must log in to post.