主要内容

resolveMaterials

Resolve component materials in optical system against glass library

Since R2026a

Description

Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.

resMaterials = resolveMaterials(opsys) resolves the material of each component in the optical system opsys using glass materials from the glass library. To use this function, first load the default glass library into the workspace using the glassLibrary object. The function updates the materials in the optical system based on the default materials in the glass library, and replaces each material with a material in the glass library catalog of the same name.

resMaterials = resolveMaterials(opsys,materials) resolves the material of each component in the optical system opsys using specified materials, materials.

Input Arguments

collapse all

Optical system which contains materials to resolve, specified as an opticalSystem object. The resolveMaterials object function updates the materials of the optical system components based on the existing materials in the glass library. It replaces each material with a material in the glass library catalog of the same name, specified as the MaterialName name-value argument.

Materials with which to resolve component materials, specified as an array of opticalMaterial objects. Specify the materials input argument to resolve component materials using a custom list of materials, instead of the glass library.

Output Arguments

collapse all

Resolved materials, returned as a table with these columns:

  • Name — Name of resolved material, returned as a string scalar or character vector.

  • Updated — Status of material, returned as a logical true if it has been resolved, or updated, with a material in the glass library or specified materials list materials.

  • Current Catalog — Name of vendor catalog listed with the material in the optical system component.

  • Updated Catalog — Name of vendor catalog which the resolveMaterials object function assigns to the material when it matches a material in the glass library or specified materials list materials.

Version History

Introduced in R2026a