Home › Forums › SYSTEM › How to write MATLAB code that is to be called in Optisystem for OFDM › Reply To: How to write MATLAB code that is to be called in Optisystem for OFDM
September 30, 2015 at 7:59 am
#25509
You can create a M-file containing your Matlab program and then put that M-file in the same folder as your osd file. Then, in Matlab component properties, write the name of your M-file in the run command. For example, if the name of your M-file is “odsmtransmitter”, you should type “ofdmtransmitter;” in the Run command.
Another way is writing your whole Matlab program in the run command. this way, you won’t use any M-file. I suggest that you try to recreate one of the Matlab component examples depicted in the tutorials by yourself.
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.)