ENT 286 Instrumentation & Measurement Laboratory Module
Laboratory 1 – Introduction to Scilab
Programming
Objectives:
1. To introduce programming in Scilab.
2. To perform basic programming in analyzing audio file.
Introduction:
Scilab is an open-source software used for numerical computation, signal processing, data
analysis and plotting. In this laboratory, students are required to analyze a given audio signal in
both time and frequency domains.
Equipment & Components:
Audio file
Scilab Software
Task:
1. Before starting the Laboratory session:
I. Download the Scilab Software at https://www.scilab.org/download/6.1.0
II. Install the software in your computer.
III. Launch the Scilab Application
2. Tutorials are available but not limited to:
I. https://www.scilab.org/tutorials
II. https://www.scilab.org/tutorials/scilab-beginners-%E2%80%93-tutorial
ENT 286 Instrumentation & Measurement Laboratory Module
3. You are given an audio signal file ‘sample_audio.wav’. You will be able to plot the signal
in time domain by using the given code below:
clf();
File = "put your file path location";
[y, Fs] = wavread(File);
y = y(1000:2000);
t = (0:length(y) - 1) / Fs;
subplot(211);
plot(t,y);
xlabel ("Time in Seconds");
title ("Original Signal");
ylabel ("Amplitude");
Result and Discussion:
1. Define what does each line of the coding do and show the plotted signal.
2. Perform frequency domain analysis by using Fast Fourier Transform (FFT) functionality and
plot the signal. State the magnitude and frequency of the signal.
3. Compare the difference between signals in time and frequency domains.
ENT 286 Instrumentation & Measurement Laboratory Module
Laboratory 1 – Introduction to Scilab
Programming
Rubrics
4 3 2 1 0
Definition of All statements More than 70% More than 50% of More than 30% No
each coding are correct, of statements are statements are of statements statement/plot
line and shows shows the correct, shows correct. are correct.
the signal plot signal plot the signal plot
Frequency Program and Program and Program and signal Error in No
domain signal plot are signal plot are plot are programming information
analysis accurate. accurate. Results insufficient to and results are
Results are are not clearly support the questionable.
clearly stated. stated. analysis.
Difference All important All important Several important Many important No statement
between details are details are details are missing. details seem
signals in time included with included but missing/ illogical/
and frequency comprehensive improvement can incorrect.
domains. description. be made on the
description.