Lab 1.
Signals as
numbers.
Build a sampled sine, an exponential, an impulse and a step, find a tone with the FFT, and watch an integrator solve a block diagram. Drag a slider and the figure redraws at once.
Read the concepts first →Your details
Free to use, no sign up. Your name is only printed on your own lab sheet, and your work is saved in this browser so you can continue later. Nothing is sent to a server.
MATLAB and Simulink Basics for Signals
This virtual lab is a MATLAB style desktop that runs in the browser. Every script of the lab is already written and can be read line by line, but nothing has to be typed: each number that matters is a slider, and the figure redraws the moment a slider moves. That makes it a quick way to see what a parameter really does to a signal before writing the code yourself.
The lab covers the signals every later communication lab uses: a sampled sine wave, a decaying exponential, the unit impulse and the unit step. It then finds the frequency of a tone with the FFT and closes with block diagram models in the style of Simulink, where an integrator in a feedback loop solves a differential equation while you watch the scope.

What you do on this bench
- Plot a sampled sine wave and change its frequency, amplitude and sampling rate.
- Build a decaying exponential, a unit impulse and a unit step on a sample index.
- Find a tone in the FFT spectrum and see how the frequency axis is scaled.
- Practise with a cosine with phase, a damped sine, shifted impulses and a window made from two steps.
- Run block diagram models: an integrator in a feedback loop, an integrated sine, a ramp and an impulse made from two steps.
On the bench
- MATLAB style desktop with an editor, a command window and figure windows
- Live block diagrams with scopes
- Sliders for every value that matters
- A PDF report of your figures
Free, runs in the browser, no sign up and nothing to install. A computer with a graphics card gives the smoothest 3D view.
Questions students ask
Do I need MATLAB installed?
No. The desktop is a simulation that runs in the browser. It shows code written in MATLAB syntax and computes the figures itself, so nothing has to be installed and no licence is needed.
Why does a sampled sine look jagged?
A computer only stores the signal at the sample instants. With few samples per period the straight lines between them are easy to see; raising the sampling rate makes the plot smooth again.
What does the FFT show?
The FFT turns a block of samples into the amplitudes of the frequencies it contains. A pure tone gives one tall line at its frequency, which is how the lab finds the tone in a noisy looking signal.
Read the concepts page for this lab · All Communication Systems virtual labs · All articles