Diaphragm
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
A Diaphragm object specifies the properties of a diaphragm in an
optical system, such as its shape, position, and angular orientation. Add a diaphragm to an
optical system using the addDiaphragm
object function, which creates a Diaphragm object.
Creation
There are two ways to create a Diaphragm object.
Use the
addDiaphragmobject function when you want to add a diaphragm as the next component to an optical system in a single command. You can specify its properties, such as surface shape and spatial position, using name-value arguments.Use the
optics.component.Diaphragmfunction described here. Use this function when you want to create a diaphragm without adding it to the optical system, or modify the properties of a diaphragm already in the system. After creating the object, you can specify the diaphragm properties by modifying the properties of the object.
Syntax
Description
creates a diaphragm = optics.component.DiaphragmDiaphragm object with default properties.
sets writeable properties using one or more name-value arguments.diaphragm = optics.component.Diaphragm(PropertyName=Value)
Example: optics.component.Diaphragm(Position=[2 0 4]) creates a
Diaphragm object representing a diaphragm at a position [2 0
4].
Properties
Version History
Introduced in R2026a