k-Wave Toolbox |
Create a 2D Cartesian circle or arc
circle = makeCartCircle(radius, num_points) circle = makeCartCircle(radius, num_points, center_pos) circle = makeCartCircle(radius, num_points, center_pos, arc_angle) circle = makeCartCircle(radius, num_points, center_pos, arc_angle, plot_circle)
makeCartCircle
creates a 2 x num_points
array of the Cartesian coordinates of points evenly distributed over a circle or arc (if arc_angle
is given). The plot that is displayed after calling makeCartCircle(10, 100, [0,0], (215/180)*pi, true)
is given below.
|
circle radius [m] |
|
number of points on the circle |
|
[x, y] position of the circle center [m] (default = [0, 0]) |
|
arc angle for incomplete circle [radians] (default = 2*pi) |
|
Boolean controlling whether the Cartesian points are plotted using |
|
2 x |
cart2grid
, makeCartSphere
, makeCircle
makeBall | makeCartSphere |
© 2009-2014 Bradley Treeby and Ben Cox.