メインコンテンツ

pickGlass

Pick named glass material from glass library

Since R2026a

    Description

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

    gmat = pickGlass(GlassName) picks a glass material with a case-insensitive matching name from the glass library. If the library contains more than one match, the function returns the first match. The order of the glass materials in the GlassCatalogTable property of the glass library controls the selected glass priority.

    example

    Examples

    collapse all

    Pick a glass from the glass library by specifying the name of the optical material.

    gmat = pickGlass("F5")
    gmat = 
      opticalMaterial with properties:
    
       Main Properties
                            Name: "F5"
                         Catalog: "SCHOTT"
                              Nd: 1.6034
                              Vd: 38.0300
                 WavelengthRange: [320 2500]
    
       Extended Properties
           RefractiveIndexMethod: "Sellmeier"
        RefractiveIndexParameter: [1.3104 0.0096 0.1960 0.0458 0.9661 115.0119 0 0]
          TransmissionParameters: [23×3 double]
                  RawCatalogData: [1×1 struct]
    
    

    Input Arguments

    collapse all

    Name of the glass, specified as a string scalar or character vector.

    Output Arguments

    collapse all

    Optical material, returned as an opticalMaterial object.

    Version History

    Introduced in R2026a