Home › Forums › SYSTEM › co-simulation with matlab › Reply To: co-simulation with matlab
December 16, 2014 at 9:28 pm
#16752

I have figured out. the code should be as following.
As=1; % amplitude of sine wave
fc=Parameter1*1e9; % sine wave with 15 GHz
fs=Parameter2; % sample rate
tw=Parameter0; % time window
t=[0:1/fs:tw-1/fs];
Time = t;
cs = length(t);
sw = As*sin(2*pi*fc*t);
OutputPort1.TypeSignal = ‘Electrical’;
OutputPort1.Noise = [];
OutputPort1.IndividualSample = [];
OutputPort1.Sampled.Signal = sw;
OutputPort1.Sampled.Time = t;
+1
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.)