How do you make out which row in the sensor_data.p corresponds to pressure field at which node in the mesh . Eg : If i want to know the pressure field at a point (60,40 ) on the grid , which row in the sensor_data.p would it correspond to . ?
k-Wave
A MATLAB toolbox for the time-domain
simulation of acoustic wave fields
what row in the sensor_data.p corresponds to pressure field at what node ?
(2 posts) (2 voices)-
Posted 10 years ago #
-
Hi Gurashish,
They follow conventional matlab matrix indexing (ie. the index numbering starts at the top of column 1 and goes down the column, then carries on at the top of column 2 , etc.). So pixel (60,40) would be index (40-1)*N+60 is there are N rows in your grid.
The function `reorderSensorData' might be useful: it reorders the time series output from kspaceFirstOrder2D based on the angle that each sensor point makes with the centre of the grid.
Ben
Posted 10 years ago #
Reply
You must log in to post.