Draw circle in PDE Modeler app
draws a circle with the center at (
and the radius
pdecirc command opens
the PDE Modeler app with the specified circle already drawn in it. If the app is
pdecirc adds the specified circle to the app window
without deleting any existing shapes.
pdecirc updates the state of the geometry description matrix
inside the PDE Modeler app to include the circle. You can export the geometry
description matrix from the PDE Modeler app to the MATLAB® Workspace by selecting
DrawExport Geometry Description, Set
Formula, Labels.... For details on the format of the geometry
description matrix, see
Draw Circle in PDE Modeler App
Open the PDE Modeler app window containing a circle with the center at (0,0) and the radius 1.
pdecirc command again to draw a circle with the center at (0,0.25) and the radius 0.5. The
pdecirc command adds the second circle to the app window without deleting the first.
Assign Name to Circle in PDE Modeler App
Open the PDE Modeler app window containing a circle with the center at (0,0) and the radius 1. Assign the name
circle1 to this circle.
xc — x-coordinate of center
x-coordinate of the center of the circle, specified as a real number.
yc — y-coordinate of center
y-coordinate of the center of the circle, specified as a real number.
R — Radius
Radius of the circle, specified as a positive number.
label — Name
character vector | string scalar
Name of the circle, specified as a character vector or string scalar.
pdecirc opens the PDE Modeler app and draws a circle. If, instead,
you want to draw circles in a MATLAB figure window, choose one of these approaches:
plotcommand, for example:
t = linspace(0,2*pi); plot(cos(t),sin(t))
rectanglefunction with the
Curvaturename-value pair set to
Use the Image Processing Toolbox™
viscircles(Image Processing Toolbox) function.
Introduced before R2006a
pderect | PDE