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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 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)