LTI System Simulation Environment
Version 1.0
General Information
Getting started...
Important note about closing figure windows
It is very important that the figure windows are closed by using the
'Close figure' function in the figure's menu. If the figures
are closed by clicking in the upper left corner of the figure window,
or by typing close at the Matlab command prompt, the program
will NOT work.
A short desciption of user defined functions
This is how the default input signal is defined.
function y=sinfun(start, samp_time, stop, period)
if nargin < 4,
period = 1;
end;
t = start:samp_time:stop;
y = sin(2*pi*t./period);
end;
User defined function must take the following arguments.
- START - The time the signal starts.
- SAMP_TIME - Time between the samples in the signal vector.
- STOP - The time the signal stops.
- PERIOD - Period time of periodic signals. This argument is not
passed to the function if aperiodic waveforms are chosen. Therefore the
if-statement in the beginning of the function is very important.
Note: Neither is it possible to specify the parameter stop
for periodic functions nor the parameter period for aperiodic
signals. It is true that the period always equals stop-start
and one could easily be misled to think that this parameter could be
removed. This is not the case, however, since the same functions can be called
to generate both periodic and aperiodic signals. Take the sinfun example
above. What would happen if we always divided t by
stop-start ?
Last modified 1997-01-08 by johanc