SinBench
← All labs · Communication Systems · Free virtual lab

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 →
5starter scripts
10practice files
2integrator models
Before you start

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.

01
Start with the concepts page: sampling, the basic signals, the FFT and how a block diagram is solved step by step.
02
Guided mode takes you through every script and model and ticks a step only when it is really done.
03
Add figures and scopes to your report and save one PDF with your name and the values you used.
Designed by
© 2026 Fasih Ullah Saleem. All rights reserved. · About · Terms of Use · Privacy
About this virtual lab

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.

MATLAB and Simulink Basics for Signals: the MATLAB style desktop with its scripts and figures
The bench of this lab, as it looks after you enter it.

What you do on this bench

  1. Plot a sampled sine wave and change its frequency, amplitude and sampling rate.
  2. Build a decaying exponential, a unit impulse and a unit step on a sample index.
  3. Find a tone in the FFT spectrum and see how the frequency axis is scaled.
  4. Practise with a cosine with phase, a damped sine, shifted impulses and a window made from two steps.
  5. 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.