Professional Documents
Culture Documents
Amplitude modulation
Simulation
• Tune
– Simulation time
– Relative tolerance
– Refine factor
– Etc
• Simulate
• Example:AmModEx.mdl
Simulation parameters
Visualization
• Double click scope
• Options on signal source
and sink
– External files
– Workspace variables
• Example:AmModEx.mdl
Triggered subsystem
Getting Help
• Need help?
– MATLAB and Simulink help
– Mathworks user community
– Mathwork technical support
……………
function
sys=VCOOutput(t,x,u,FreqCntr,
Phase,Gain)
sys =
Gain*cos(2*pi*(FreqCntr+u)*t+
Phase);
S-function Instantiation
• Drag and drop S-function
system block to a model
• Double click the block to
specify the script name and
static parameters
S-function instance • Example:
VCOSfuncEx.mdl