Hello All
Is it possible to make the source.p a function of (x,y,z,t)?
I mean besides the time, it is also a function of location
in the K-wave?
Hello All
Is it possible to make the source.p a function of (x,y,z,t)?
I mean besides the time, it is also a function of location
in the K-wave?
Hi cge,
It is possible to define a separate source signal for each point in your source mask (rather than a single time series). In this case, source.p
is indexed as (source_point_index, time_index)
, where the source_point_index
corresponds to a particular element in source.mask
following MATLAB's column-wise linear matrix indexing.
If you define the source mask to cover the entire grid, you could define source.p as a function of (x, y, z, t), and then reshape it using source.p = reshape(source.p, Nx*Ny*Nz, Nt);
There's some more information in section 3.4 of the k-Wave manual that you might find helpful.
Brad.
You must log in to post.