Hello! I am new to k wave and need help for the following. I want to place sensors in a non-uniform circular distribution around a pressure source (2D grid). makeCartCircle doesn't allow nonuniform arrangement and makeCircle doesn't give control over the number of sensors and relative positions. How can I implement this? Kindly help. Thanks!
k-Wave
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
Nonuniform circular distribution of sensors
(4 posts) (2 voices)-
Posted 9 years ago #
-
Hi umber,
You have two options. If you want to use a Cartesian sensor mask, then simply give a list of the (x,y) coordinates of the sensor points. Alternatively, to use a binary sensor mask, then create a binary matrix the same size as the grid, and set value at the grid points corresponding to the desired sensor positions to 1. There is some more information about using Cartesian and binary sensor masks in the k-Wave manual and the examples included in the toolbox.
Brad.
Posted 9 years ago # -
Thank you Brad! Is it possible to add 2 cartesian sensor masks or to use/view them simultaneously? I know this can be done with binary sensor masks.
Posted 9 years ago # -
Hi umber,
Your Cartesian sensor mask can contain as many points as you like, however, if you want to group collections of points, you will have to do this manually in post processing. You can view the sensor mask using
plot(mask(1, :), mask(2, :), 'x')
. Alternatively, you could convert the Cartesian mask to a binary mask usingcart2grid
and then plot usingimagesc
.I hope that answers your question,
Brad.
Posted 9 years ago #
Reply
You must log in to post.