SlideShare a Scribd company logo
vlsi training in chandigarh
vlsi training in chandigarh
vlsi training in chandigarh
Command
Window
Workspace /
Current Directory
Command
History
Explore the Matlab Desktop
Matlab
prompt
assign
operator
suppress
command
output
comment
operator
Try the same line without the
semicolon and comments
vlsi training in chandigarh
vlsi training in chandigarh
vlsi training in chandigarh
vlsi training in chandigarh
square brackets to define matrices
semicolon for next row in matrix
A =
3 2 1
5 1 0
2 1 7
indices of matrix element(s)
Try the following
>> x=0:pi/12:2*pi;
>> y=sin(x)
A =
3 2 1
5 1 0
2 1 7
What’ll happen if you type A(:,:) ?
A =
3 2 1
5 1 0
2 1 7
B =
1 3 1
4 9 5
2 7 2
Create matrices A and B and try out the the matrix operators in this slide
Enter matrix B
into the Matlab
workspace
Matlab
Desktop
Press to create
new m-file in the
matlab editor
Highlight a few lines of your
script by left- clicking and
dragging the mouse over the
lines. Right-click the
highlighted lines and select
Evaluate Selection.
Will be slightly
different in Linux
vlsi training in chandigarh
output
inputfunction name
for statement block
function keyword
help lines for function
Access the comments of
your Matlab functions
>> help iterate Make sure you save changes to the
m-file before you call the function!
Functions can have many
outputs contained in a matrix
Remember to use the
Matlab help command for
syntax
>> help if
if statement
block
Method is linear
>>
i =
4
i =
16
i =
256
While statement block Switch statement block
Without ; to
print output
Click mouse on the left
of the line of code to
create a breakpoint
local function
workspace
exit debug
mode
Debug menus
Investigate the function
>> y=A*cos(w*t+phi);
for different values of phi (eg: 0, pi/4, pi/3,
pi/2), w (eg: 1, 2, 3, 4) and A (eg: 1, 0.5, 2). Use
the hold on Matlab command to display your
plots in the same figure. Remember to type hold
off to go back to normal plotting mode. Try
using different plot styles (help plot)
A = amplitude
phi = phase
w = angular frequency = 2*pi*frequency
Plot style
Next week …
Remember to use the Matlab help command if you get stuck
string
cell
error handling
Operating
system
command
Graphical
user interface
Continue in next line
Figure 1
Figure 2

More Related Content

PPT
Matlab final year project in ludhiana
PPT
Matlab final year project in jalandhar
PPT
How to work on Matlab.......
DOC
Matlab tut2
PPTX
Programming Environment in Matlab
PPTX
Introduction to MATLAB
PPTX
Matlab 1(operations on_matrix)
Matlab final year project in ludhiana
Matlab final year project in jalandhar
How to work on Matlab.......
Matlab tut2
Programming Environment in Matlab
Introduction to MATLAB
Matlab 1(operations on_matrix)

What's hot (18)

PPT
Matlab Introduction
PDF
MATLAB Basics-Part1
PDF
Matlab introduction lecture 1
PPT
Introduction to matlab
PDF
MATLAB Programming
PPT
Basics of programming in matlab
PDF
Assignment8
PPTX
Matlab introduction
PPTX
Basic operators in matlab
PDF
Matlab programming project
PDF
Matlab HTI summer training course_Lecture2
PPTX
Matlab simulink introduction
PPT
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
DOC
Matlab summary
PDF
Matlab-Data types and operators
PDF
Using matlab simulink
PPTX
Matlab for diploma students(1)
PPTX
Flowcharts
Matlab Introduction
MATLAB Basics-Part1
Matlab introduction lecture 1
Introduction to matlab
MATLAB Programming
Basics of programming in matlab
Assignment8
Matlab introduction
Basic operators in matlab
Matlab programming project
Matlab HTI summer training course_Lecture2
Matlab simulink introduction
MATLAB/SIMULINK for Engineering Applications day 2:Introduction to simulink
Matlab summary
Matlab-Data types and operators
Using matlab simulink
Matlab for diploma students(1)
Flowcharts
Ad

Viewers also liked (20)

PDF
Company overview and profile
PPTX
Red eye project
PDF
Feature dvbs3
DOCX
Leyes dela persepcionvisual
PPT
Publicidad En Internet
PPT
Nicole Iron Mountain
PPT
MBR presentazione Maris
PPTX
1st session
PDF
Agenda cultural del 19 al 21 abril
PDF
River House In Pictures
PDF
SIX Winter School final agenda
PPT
PDF
Revista Ejército Nº 880 julio-agosto
PPT
Website preliminary
DOCX
Activity in biology
PPSX
Holy Joachina de Vedruna's
PPTX
Glamor gifts & florist hand bouquet roses
DOC
About
PDF
Wwap wwdr4-greco-italiano
PPTX
ON slides - oktoberseminar 2011
Company overview and profile
Red eye project
Feature dvbs3
Leyes dela persepcionvisual
Publicidad En Internet
Nicole Iron Mountain
MBR presentazione Maris
1st session
Agenda cultural del 19 al 21 abril
River House In Pictures
SIX Winter School final agenda
Revista Ejército Nº 880 julio-agosto
Website preliminary
Activity in biology
Holy Joachina de Vedruna's
Glamor gifts & florist hand bouquet roses
About
Wwap wwdr4-greco-italiano
ON slides - oktoberseminar 2011
Ad

Similar to vlsi training in chandigarh (20)

PDF
Introduction to matlab
PDF
Introduction to matlab
PPTX
Raushan's MATLB PPT..pptx
PPT
Introduction_to_Matlabbanmar k ibrahim a
PPTX
1.1Introduction to matlab.pptx
PDF
L_Matlab-1_DRS_OE1100 (2).pdf matlab matlab
PPT
Matlab1
PPT
Matlab Tutorial.ppt
DOCX
Introduction to matlab
PDF
Matlab for beginners, Introduction, signal processing
PDF
Matlab pt1
PDF
Matlab quickref
DOCX
Mmc manual
PPTX
TRAINING PROGRAMME ON MATLAB ASSOCIATE EXAM (1).pptx
PPTX
Mat lab workshop
PPT
MatlabIntro (1).ppt
DOC
matlab Lesson 1
PPTX
1. Introduction.pptx
PPTX
Basic matlab and matrix
PPTX
Lines and planes in space
Introduction to matlab
Introduction to matlab
Raushan's MATLB PPT..pptx
Introduction_to_Matlabbanmar k ibrahim a
1.1Introduction to matlab.pptx
L_Matlab-1_DRS_OE1100 (2).pdf matlab matlab
Matlab1
Matlab Tutorial.ppt
Introduction to matlab
Matlab for beginners, Introduction, signal processing
Matlab pt1
Matlab quickref
Mmc manual
TRAINING PROGRAMME ON MATLAB ASSOCIATE EXAM (1).pptx
Mat lab workshop
MatlabIntro (1).ppt
matlab Lesson 1
1. Introduction.pptx
Basic matlab and matrix
Lines and planes in space

More from matrixphagwara (20)

PPT
Hsff training in bangalore
PPTX
Image processing training in chennai
PPTX
Image processing training in Bangalore
PPTX
Image processing training in pune
PPTX
Image processing training in delhi
PPTX
Image processing training in ferozepur
PPTX
Image 6 months
PPTX
Image processing training in Bathinda
PPTX
Image processing training in ludhiana
PPTX
Image processing training in ludhiana
PPTX
Image processing training in amritsar
PPTX
Image processing training in jalandhar
PPTX
Image processing training in chandigarh
PPTX
Image processing training in mohali
PPTX
cloud computing training in pune
PPTX
cloud computing training in moga
PPT
cloud computing training in Bathinda
PPTX
cloud computing training in ludhiana
PPTX
cloud computing training in jalandhar
PPTX
android training in bangalore
Hsff training in bangalore
Image processing training in chennai
Image processing training in Bangalore
Image processing training in pune
Image processing training in delhi
Image processing training in ferozepur
Image 6 months
Image processing training in Bathinda
Image processing training in ludhiana
Image processing training in ludhiana
Image processing training in amritsar
Image processing training in jalandhar
Image processing training in chandigarh
Image processing training in mohali
cloud computing training in pune
cloud computing training in moga
cloud computing training in Bathinda
cloud computing training in ludhiana
cloud computing training in jalandhar
android training in bangalore

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
Classroom Observation Tools for Teachers
PDF
RMMM.pdf make it easy to upload and study
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Cell Structure & Organelles in detailed.
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
master seminar digital applications in india
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Pharmacology of Heart Failure /Pharmacotherapy of CHF
O5-L3 Freight Transport Ops (International) V1.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Anesthesia in Laparoscopic Surgery in India
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Computing-Curriculum for Schools in Ghana
Classroom Observation Tools for Teachers
RMMM.pdf make it easy to upload and study
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Cell Structure & Organelles in detailed.
Abdominal Access Techniques with Prof. Dr. R K Mishra
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
STATICS OF THE RIGID BODIES Hibbelers.pdf
master seminar digital applications in india
Weekly quiz Compilation Jan -July 25.pdf
Yogi Goddess Pres Conference Studio Updates
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS

vlsi training in chandigarh