insert
Syntax
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
insert(
specifies to insert the component before an existing optical system component with the index
opsys,component,InsertBefore = nextIdx)nextIdx using a name-value argument. For example,
InsertBefore=1 specifies to insert the component at an equal distance
between the origin and first component in the optical system.
insert(
specifies to insert the component after an existing optical system component with the index
opsys,component,InsertAfter = priorIdx)priorIdx using a name-value argument. For example,
InsertAfter=1 specifies to insert the component at an equal distance
between the first and second components in the optical system.
Note
This functionality requires the Optical Design and Simulation Library for Image Processing Toolbox™. You can install the Optical Design and Simulation Library for Image Processing Toolbox from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Examples
Input Arguments
Alternative Functionality
To add an optical component to the end of an optical system, use the add object
function. Using this function, you can position this component either relative to the
construction frame of the last component in the optical system, or relative to the global
coordinate system.
Version History
Introduced in R2026a
See Also
opticalSystem | addImagePlane | addRefractiveSurface | addDiaphragm | remove | glassLibrary

