14 views

Uploaded by Maheen Islam

Matlab Help

- Feedback — Quiz Week 2o
- Presentation1.pptx
- Inverse Analysis
- sanet.cd.3319040359
- 37
- Linear Guest
- Dsp Experiment 1
- Matlab Ttutorial 1.ppt
- Experiment #1
- Misnkyprob1
- Matlab Tutorial
- MATLAB
- Calculus Matrix Algebra
- math0014syllabus.docx
- Introduction to MATLAB with Image Processing
- GETTING STARTED WITH MATLAB-RUDRAPRATAP
- Matlab review
- Mat Labs i Mu Link Tutorial
- chap. 2 m..doc
- MATLAB - Rudra Pratap

You are on page 1of 24

Systems Lab 1

Lab instructor : Maheen Islam

Contact: maheen.islam@mail.au.edu.pk

Signals And Systems Lab - Lab engineer Maheen Islam- Electrical Department-Air University

CR

Class group-mail

from office by CR before Friday every week.

Marks division

Quizzes 6%

Project 6%

Lab Notebook 3%

Assignments 3%

Lab performance 2%

Department-Air University

Announcements

Introduction

Lab manual (individual)

from office.

Project Submission

Signals And Systems Lab - Lab engineer Maheen IslamElectrical Department-Air University

with various topics having applications in many areas

Announcement

of engineering such as

Digital

signal

processing

Communica

tion

systems

SystemDesign

Signals and

System

Control

engineering

Radar

Engineering

Regarding Projects

Project Proposal

deadline: Week

before mids.

Failure of

submission till

deadline will result

in deduction of 2%

marks and a project

will be assigned.

Image

Processing

4

Department-Air University

Introduction of Matlab

Introduction of signals

Difference of continuous time and discrete

time signals, system properties

Topics under focus

Convolution, Fourier series, Continuous

time Fourier transform (CTFT), discrete

time Fourier transform (DTFT), Ztransform.

5

Signals And Systems Lab - Lab engineer Maheen IslamElectrical Department-Air University

Lab 1

Lab 2

Lab 3

Lab 4

Lab 5

Lab 6

Lab 7

Lab 8

Lab 9

6

Department-Air University

MATLAB

Lab 1

University

Introduction

Product by MathWorks

http://www.mathworks.com

Versatile Tool

Software

Numerical

Data

Graphical

and

Computation

Analysis

Visualization

Hardware

interface

Contains a large collection of built- in functions and commands used in

an interactive mode, when you are in the command window

processing, communications engineering, and image processing.

University

Matlab GUI

Editor

Window

Current

Folder

Simulink

University

Command

Window

Matlab

Workspace

appear in this window

Commands

workspace before you quit, use the command SAVE. This automatically

saves all the variables in a file called matlab.mat. When you enter

MATLAB again, you can restore these variables with the command

LOAD.

variables are cleared & cannot be retrieved.

a particular function.

University

10

Notes

MATLAB is case sensitive i.e; time, Time, TIME are three different

variables.

To recall previous commands MATLAB uses the up & down arrow keys.

commas (,) or semicolons (;).Commas tell MATLAB to display results,

semicolons suppress printing.

If a statement does not fit on one line use three periods,, followed by

Enter to indicate that the statement continues on the next line. The

maximum number of characters allowed on a single line is 4096.

University

11

represented as arrays in MATLAB

with a space between the elements, MATLAB displays it as a row vector

University

12

Try it

[1 2 0 3 1 5]

B=[1 2 0; 3 1 5; 0 4 -2] % will display a 3x3 matrix, each ; shows next row

Note

correctly whereas -1+j2 is not (MATLAB interprets the j2 as the name of a

variable. You can always write -1+j*2

Signals And Systems Lab - Lab engineer Maheen Islam-Electrical Department-Air

University

13

Addition +

Subtraction -

Multiplication *

Power or exponent ^

Transpose e.g A

Left division \

Right division /

x = 5;

F=x*C ;

to cater this error use dot operator will be discussed later.

Signals And Systems Lab - Lab engineer Maheen Islam-Electrical Department-Air

University

14

== equal to

~= not equal to

(not).

University

15

Matrix Operations

operation between the two matrices. e.g (.*), (./), (.^)

and column or row vectors

EMPTY IF J>K

Try It:

b=[5 4 2];

University

16

Matrix Operation

Colon Operator:

Q(:,2) gives a sub matrix with elements in all rows and the second column only.

The command Q(3,:) gives the elements in all columns and the third row only.

The command Q(1:2,2:3) gives the elements in the rows from 1 to 2 and in the

columns from 2 to 3

Q(:,:)

flipud(A) Flips the rows up to down

triu(A) Gives the upper triangular part of the matrix

tril(A) Gives the lower triangular part of the matrix

University

17

ones(m,n), which gives a matrix with the number one in all its m

rows and n columns

zeros(m,n), which gives a matrix with zeros in all its m rows and n

columns

Ans the default variable used for the most recent result. And this

variable is also used as a default variable to store any value.

number greater than 1

I or j i=j=v-1

University

18

Complex Numbers

University

19

Pre-defined functions

University

20

Notes

them with new values, they become the current values

for the variables

University

21

Exercise-1.91

Create a vector

1.

a)

b)

2.

a)

b)

c)

d)

Let x = [3 2 6 8] and y = [4 1 3 5]

3.

a)

b)

c)

Multiply each element in x by the corresponding element in y and store the result in

z.

d)

University

22

Exercise-1.91

given a vector t = [1:0.2:2] write down the MATLAB

expressions that will correctly compute the following

4.

a)

ln(2 + t + t2 )

b)

( 1+ cos(3t) )

c)

cos2(t) + sin2(t)

d)

tan-1 (1)

e)

1+2t

University

23

number to each diagonal locations of the matrix.

That is:

A=

A=

1

4

7

1

University

2

7

8

2

3

6

13

4

4

6

0

6

24

- Feedback — Quiz Week 2oUploaded byjcvoscrib
- Presentation1.pptxUploaded byajitjk123
- Inverse AnalysisUploaded bycalla80
- sanet.cd.3319040359Uploaded bydrsteel
- 37Uploaded bysanchit
- Linear GuestUploaded byManish kumar
- Dsp Experiment 1Uploaded byRajkumarDwivedi
- Matlab Ttutorial 1.pptUploaded byChandrashekhar Choudhari
- Experiment #1Uploaded byabdala67
- Misnkyprob1Uploaded byJoseMoruja
- Matlab TutorialUploaded byBrian Sanchez
- MATLABUploaded byПараг Тамбе
- Calculus Matrix AlgebraUploaded byrossherbert2005
- math0014syllabus.docxUploaded bydjun033
- Introduction to MATLAB with Image ProcessingUploaded byKamel Ardam
- GETTING STARTED WITH MATLAB-RUDRAPRATAPUploaded byshrekkie29
- Matlab reviewUploaded byRaed Mohsen
- Mat Labs i Mu Link TutorialUploaded byRohitUikey
- chap. 2 m..docUploaded byChEng
- MATLAB - Rudra PratapUploaded byAnirban Chakraborty
- Intro to Matlab FullUploaded byArmando Marquez
- 7 Electre MethodUploaded byAllien Wang
- SemiUploaded bynishutha3340
- Data Structure IUploaded byshnsundar
- Matlab PythonUploaded byjuantik
- MATLAB Tutorial 1Uploaded byfarah
- Tutorial 2 Vectors and Simple Matrix OperationsUploaded by213025 ktr.et.mech.15
- Component Activities in Liquid Mixture, Using NRTL - File Exchange - MATLAB CentralUploaded bybakhtyar21
- Www Mmscience Cz 201313Uploaded byAnonymous lEBdswQXmx
- matlab_-_lecture_notes_-_exercises_only.pdfUploaded bysamlenci

- MOMA 1978Uploaded byteodor0220
- Chetanaites I' Am Vindhya. I Attended the Written Test OfUploaded byBridget Smith
- M. Mani, C. Shivaraju (Eds.)-Mealybugs and Their Management in Agricultural and Horticultural Crops -Springer India (2016)Uploaded byAAA
- tasting the hardness of water.pdfUploaded byAnonymous XcoRUnF
- soakwayUploaded byTyumuu Feweu
- Ureaplasma urealiticumUploaded byChristianGB
- OM2_group 06Uploaded byNimit Khurana
- ResumeUploaded byBasil Ghafoor
- Pso TutorialUploaded byideamonk
- SDAC Data Flow DiagramsUploaded byibrahimshaik
- Active Manual EnglishUploaded byNashwan Hamoud Alwarafi
- Chinese HoroscopeUploaded byKarl Jacobs
- Exam P SampleUploaded bybezner_paul
- Bar Coding to Reduce WasteUploaded byComrade Comrade Limbe
- Best Practice BW Netweaver ConnectionUploaded bygfavaro
- MATLAB-Manual Rtw GsUploaded byTanNguyễn
- BS EN 01052-3-2002Uploaded byHabib Ur Rahman
- Assessing Mental Health and Psychosocial Needs and Resources Toolkit for Humanitarian SettingsUploaded byAzim Alexander Shea
- Creative Brief1Uploaded byFatima Jabeen
- Format of Proj. ReportUploaded byRohit Khatri
- Works CitedUploaded byPamela Mae Ucab
- Heroism: A Conceptual Analysis and Differentiation Between Heroic Action and Altruism - Franco, Blau & Zimbardo 2011Uploaded byZeno Franco
- Bahan Paper Trk (Sebagian)Uploaded byFerdian Tjioe
- Fortigate System Admin 56Uploaded byabaheabaheabahe
- BEEP 16Uploaded byPalashCollege
- rvd2008-11-engUploaded byuncleadolph
- AcknowledgementUploaded bySumit Patel
- Secrets of varga chartsUploaded byVenkatesh Bindu
- Thermo Fisher to Acquire Life Technologies IR PresentationUploaded byTariq Motiwala
- Putts Minus GreensUploaded byMark Hachey