draw_array()
Description: This function creates a 3D representation of an arbitrary array of FOCUS transducers.
Usage
draw_array(transducer_array);
draw_array(transducer_array, input_color);
draw_array(transducer_array, input_color, new_figure);
draw_array(transducer_array, input_color, new_figure, coordinate_grid);
Arguments
- transducer_array A FOCUS transducer array.
- input_color A color matrix (of the form [R G B], where R, G, and B are between 0 and 1) or color string (e.g. 'blue') to use for the array elements. This argument can also be an array of the same size as the transducer array. In this case, one color is defined for each element.}
- new_figure Create a new MATLAB figure to draw the array in rather than drawing over the old one.
- coordinate_grid A FOCUS coordinate grid. If this argument is present, the coordinate grid will be represented by a cube on the output plot.}
Output Parameters
Notes
This function returns nothing; it plots the given transducer
array in a new MATLAB figure.