Home › Forums › SYSTEM › changing parameter of matlab component › Reply To: changing parameter of matlab component
You can perform this functionality with Parameter Sweeps. Double-click the Matlab component in the OptiSystem layout and choose “Add Parameter”. There you can name your variable and give some constraints on the values it can take. Creating this parameter will then create a variable in your Matlab workspace when the program is run, so you can use it in any of your calculations.
To perform multiple sweeps with different values for this parameter change the “Mode” from “Normal” to “Sweep”. In the value box, click on the small table icon. From there, you will be able to change the total number of sweeps and the values the variable takes.
Hope this helps!
Categories
- All
-
Knowledge
Contains a detailed Q&A knowledge base. -
General
All non-technical questions. -
System
Optical system design and analysis. -
Instrument
Communicate and control different kinds of instruments. -
SPICE
Opto-electronic circuit design. -
FDTD
Finite-Difference Time-Domain simulation. -
BPM
Beam Propagation Method analysis and design. -
Grating
Fiber optic grating simulation. -
Fiber
Optical fiber design and characterization. -
Exchange
Users can exchange design files.
(Matlab, C++, etc.)