You are on page 1of 3

REPORT

2 FEB – 9 FEB
Get familiar with MATLAB basics

- Basic features, vectors and matrices, plotting, function


- Create simple script for better understanding

The plotting, annotate graph, manually enter arrays, concatenate array, reshaping array, access data in matrices,
sort table data, extract data, loops, function.

Files: array1.m , for_loop_add , forLoopEx , functEx , Plotting , switchcaseEx , , ifelseifEx , (multi1, add1, cl1) ,
(getFilter, LowpassFilter)

11 FEB – 18 FEB
Explore Filter Builder App and App Designer

- Build simple filters (Low pass, High pass, Band pass, Band stop)
- Create GUI to plot sine wave from excel file using m file
- Create GUI to plot sine wave from excel file using App DesignerFilter Builder App

Filter Builder

The filter specification is generated into MATLAB code and used as filter for LowpassFilter.m file.

Lowpass Design Specification :

-Impulse Response : FIR

-Order Mode : Specify (20)

-Frequency Constraints : Cutoff (6dB) frequency

-Frequency Unit : kHz

-Input Sample :2 (Cutoff frequency : 0.5)

-Magnitude Unconstrained.

Figure 1 : LowpassFilter.m
App Designer
Create .m file that design GUI as in Figure 2. Upload button used uigetfile to import excel data into the table.
Excel file consist of the Frequency and Amplitude data. Both frequency and amplitude data stored based on the
index number. Frequency data is stored in second column while amplitude in the first column.

Plot button called stored data and perform sine wave operation to plot the signal.

Figure 2 : buttonplot.m

From the .m file, the code is edited and transferred into App Designer. Two push button, one table and one axes
components are used for the GUI. This file can plot multiple input data.

Figure 3 : AmpFre.mlapp

For this file, it plots signal by using frequency and amplitude values according to the slider output.
Figure 4 : tutorialApp.mlapp

You might also like