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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)