zmxinfo
Syntax
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
Examples
Read the metadata of a ZMX file.
info = zmxinfo("PhotographicLens.zmx");Display the mode of the optical system. Observe that the mode of the optical system is sequential, indicating that you can import the optical system using the zmximport function.
info.Mode
ans = "SEQ"
Inspect the surfaces of the optical system.
info.Surfaces
ans=30×1 struct array with fields:
Type
Radius
DistanceToNext
SemiDiameter
Parameters
ExtendedData
ApertureStop
Material
ConicConstant
Inspect the field points of the optical system.
info.FieldPoints
ans=4×1 heterogeneous FieldPoint (FieldPosition, FieldAngle) array with no properties.
Count the number of preset configurations in the ZMX file.
config = info.SurfaceConfigurations; configIndex = config.ConfigurationIndex; configIndex = unique(configIndex); numConfig = numel(configIndex)
numConfig = 6
Input Arguments
Filename of the ZMX file, specified as a string scalar or character vector. You can specify the filename as an absolute or relative path of the ZMX file.
Data Types: char | string
Output Arguments
Metadata of ZMX file, returned as a structure. The metadata structure contains these fields.
| Field | Details |
|---|---|
Filename | Absolute path and filename of the ZMX file, returned as a string scalar. |
Mode | Mode of the optical system, returned as one of these options.
|
Name | Name of the optical system, returned as a string scalar. |
Units | Units of length, returned as a structure with these fields.
|
FieldPoints | Field points specified in the ZMX file, returned as a vector of
|
Wavelengths | Wavelengths for analyzing the optical system specified in the ZMX file, returned as a numeric vector. |
PrimaryWavelength | Primary wavelength specified in the ZMX file, returned as a numeric scalar. The primary wavelength is one of the wavelengths for analyzing the optical system. |
GlassCatalog | Names of materials used in the optical system, returned as a string
array. You can check if a material is present in the glass library by using
the |
Surfaces | Details of surfaces in the optical system, returned as a structure with these fields.
|
ParaxialInfo | Paraxial information of the optical system, returned as a structure with these fields.
|
SurfaceConfigurations | Preset configurations of variants of the optical system, returned as a table. Every configuration has changes to certain parameters of certain surfaces in the base optical system. One row of the table specifies the details of one such change.
All rows having the same configuration index together contain details of all the surface properties to be varied to achieve that configuration. |
RawTags | Raw metadata tags and corresponding values in the ZMX file, returned as a structure. |
Data Types: struct
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)