主要内容

changePriority

Change priority of glass material catalog in glass library

Since R2026a

Description

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

changePriority(gl,glassCatalogName,newPriority) changes the glass library index of the glass material catalog specified by the name glassCatalogName to newPriority. The index, or order, of the glass catalog in the glass library determines its priority when you use the pickGlass function to query a material that exists in more than one catalog.

changePriority(gl,glassCatalogIndex,newPriority) changes the glass library list index of the glass material catalog specified by the index glassCatalogIndex to newPriority.

Input Arguments

collapse all

Glass library, specified as a GlassLibrary object.

Name of the glass material catalog in the glass library, specified as a string scalar or character vector.

Index of the glass material catalog in the glass library, specified as a positive integer.

New index of the glass material catalog in the glass library list, specified as a positive integer.

Version History

Introduced in R2026a