主要内容

pickCoating

Pick optical coating from optical coating library

Since R2026a

    Description

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

    oc = pickCoating(coatingName) picks a coating with a case-insensitive matching name from the coating library. If the library contains more than one match, the function returns the first match. The order of the coatings in the CoatingCatalogTable property of the coating library controls the selected coating priority.

    example

    Examples

    collapse all

    Load the default optical coating library.

    cl = coatingLibrary
    cl = 
      CoatingLibrary with properties:
    
        CoatingCatalogTable: [1×3 table]
                   Coatings: [2×1 opticalCoating]
    
    

    Load and inspect the first default coating from the coating library, a Bragg reflector coating.

    oc = pickCoating("Bragg_587nm_12l")
    oc = 
      opticalCoating with properties:
    
                      Name: "Bragg_587nm_12l"
        IncidentAngleRange: [0 15]
           WavelengthRange: [300 800]
         PrimaryWavelength: 587.6000
                    Medium: [1×1 opticalMaterial]
                 Substrate: [1×1 opticalMaterial]
          CoatingMaterials: [2×1 opticalMaterial]
        LayerMaterialIndex: [1 2 1 2 1 2 1 2 1 2 1 2]
            LayerThickness: [1 1 1 1 1 1 1 1 1 1 1 1]
             ThicknessUnit: "quarterWavelength"
                 NumLayers: 12
            TotalThickness: 983.4091
    
    

    Input Arguments

    collapse all

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

    Output Arguments

    collapse all

    Optical coating, returned as an opticalCoating object.

    Version History

    Introduced in R2026a