I am using the code 'example_us_bmode_linear_transducer.m' and it is a great code. I copied it into another m-file and altered it to create a simulated ultrasound with a brain tissue phantom. My partner and I have some questions about parts of the code that our lab director wants us to answer. One question is the placement of the coordinate dimensions of the medium itself. Currently our medium is a cube with 54 x 26 x 26 dimensions (not including PML) and we are confused about what is considered x, y , and z. So far my partner and I considered the x is associated with length, the y with the width, and the z with the depth (same as Cartesian coordinates). We just want to check. Next, we would like to know on what face of the cube the transducer array is placed. We created a cube shaped cavity on top of the medium and would like to know if we don't change the position from the original code then where are the traducers placed. Also, we see in the code that the transducers move. Is this a physical movement or a movement of activating the transducers one at a time ? Also, on the website < http://www.k-wave.org/documentation/example_us_bmode_linear_transducer.php > I saw a schematic of the scattering medium and my partner and I were wondering if you created that in MATLAB and what code or set of codes you used to create the schematic because we were thinking of doing that as well.
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
Creating the Scattering Medium Schematic(2 posts) (2 voices)
You can open this example and the associated help file from the MATLAB help browser (see the manual if you need more details).
Regarding the placement of the transducer, it is always facing the in x-direction (so the transducer is within the y-z plane). There is a diagram with coordinate axes in the Defining An Ultrasound Transducer Example.
In this example, the medium map is moved so the entire transducer array doesn't need to be defined, which makes the simulation more efficient. The code used to create the scattering medium is included in the example m-file.
Hope that helps,
You must log in to post.