What problem does it solve?
Designing optical systems in MATLAB requires knowing the Optical Design and Simulation Library's object model, coordinate conventions, and analysis workflows. This Skill gives an AI agent the domain knowledge to construct systems from prescription tables, import Zemax files, run ray-tracing analyses, and set up optimization and tolerancing studies without hallucinating functions.
Core Features & Use Cases
- Optical System Construction: Build sequential systems from prescription tables, combine off-the-shelf components, add mirrors and folded geometry, and import Zemax (.zmx) files including shipped sample designs.
- Analysis & Visualization: Compute spot diagrams, lens distortion, ray aberrations, and paraxial properties, and extract custom metrics from RayBundle data.
- Optimization & Tolerancing: Structure design optimization with merit functions and bounded optimizers, design thin-film coatings, and run Monte Carlo yield or sensitivity analyses.
- Use Case: Ask the agent to import a Cooke triplet sample, set semi-diameters from a 20-degree field of view, trace rays, and plot the spot diagram — it produces correct idiomatic MATLAB code end to end.
Quick Start
Use the matlab-model-optics skill to import the sample Cooke triplet Zemax file, set the field of view to 20 degrees, and plot a spot diagram.