SlideShare a Scribd company logo
1 of 25
CONTACT US ON-
Address-
Opp. Phagwara Bus Stand,Above Bella Pizza, Handa City Center,Phagwara
Email-e2matrixphagwara@gmail.com, jalandhare2matrix@gmail.com
Web site-www.e2matrix.com
Contact no-07508509730, 09041262727, 7508509709
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
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
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

What's hot

Matlab HTI summer training course_Lecture2
Matlab HTI summer training course_Lecture2Matlab HTI summer training course_Lecture2
Matlab HTI summer training course_Lecture2
Mohamed Awni
 
C programming session 03
C programming session 03C programming session 03
C programming session 03
Dushmanta Nath
 

What's hot (16)

Lecture three
Lecture threeLecture three
Lecture three
 
Error analysis
Error analysisError analysis
Error analysis
 
Basic operators in matlab
Basic operators in matlabBasic operators in matlab
Basic operators in matlab
 
flowcharts
flowchartsflowcharts
flowcharts
 
Format string
Format stringFormat string
Format string
 
Matlab HTI summer training course_Lecture2
Matlab HTI summer training course_Lecture2Matlab HTI summer training course_Lecture2
Matlab HTI summer training course_Lecture2
 
MATLAB Programming Examples Research Ideas
MATLAB Programming Examples Research IdeasMATLAB Programming Examples Research Ideas
MATLAB Programming Examples Research Ideas
 
Algorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of AssignmentAlgorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of Assignment
 
CP Handout#9
CP Handout#9CP Handout#9
CP Handout#9
 
Lecture one
Lecture oneLecture one
Lecture one
 
Relational Operators in C
Relational Operators in CRelational Operators in C
Relational Operators in C
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
C programming session 03
C programming session 03C programming session 03
C programming session 03
 
[Question Paper] Advanced Java (Old Syllabus) [April / 2013]
[Question Paper] Advanced Java (Old Syllabus) [April / 2013][Question Paper] Advanced Java (Old Syllabus) [April / 2013]
[Question Paper] Advanced Java (Old Syllabus) [April / 2013]
 
Matlab summary
Matlab summaryMatlab summary
Matlab summary
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 

Viewers also liked

Viewers also liked (17)

Artificial intelligence mtech project in ludhiana
Artificial intelligence mtech project in ludhiana Artificial intelligence mtech project in ludhiana
Artificial intelligence mtech project in ludhiana
 
6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar
 
image processing project course ludhiana
image processing project course ludhianaimage processing project course ludhiana
image processing project course ludhiana
 
6months industrial training in image processing, jalandhar
6months industrial training in image processing, jalandhar6months industrial training in image processing, jalandhar
6months industrial training in image processing, jalandhar
 
6months industrial training in embedded, jalandhar
6months industrial training in embedded, jalandhar6months industrial training in embedded, jalandhar
6months industrial training in embedded, jalandhar
 
6months industrial training in data mining,ludhiana
6months industrial training in data mining,ludhiana6months industrial training in data mining,ludhiana
6months industrial training in data mining,ludhiana
 
6months industrial training in fuzzy logic, jalandhar
6months industrial training in fuzzy logic, jalandhar6months industrial training in fuzzy logic, jalandhar
6months industrial training in fuzzy logic, jalandhar
 
6 weeks summer training in .Net6,jalandhar
6 weeks summer training in .Net6,jalandhar6 weeks summer training in .Net6,jalandhar
6 weeks summer training in .Net6,jalandhar
 
6 weeks summer training in data mining,ludhiana
6 weeks summer training in data mining,ludhiana6 weeks summer training in data mining,ludhiana
6 weeks summer training in data mining,ludhiana
 
6months industrial training in labview, ludhiana
6months industrial training in labview, ludhiana6months industrial training in labview, ludhiana
6months industrial training in labview, ludhiana
 
Software testing mtech project in jalandhar
Software testing mtech project in jalandharSoftware testing mtech project in jalandhar
Software testing mtech project in jalandhar
 
6 weeks summer training in fuzzy logic,jalandhar
6 weeks summer training in fuzzy logic,jalandhar6 weeks summer training in fuzzy logic,jalandhar
6 weeks summer training in fuzzy logic,jalandhar
 
Hfss final year project in jalandhar
Hfss final year project in jalandharHfss final year project in jalandhar
Hfss final year project in jalandhar
 
6 weeks summer training in hfss,ludhiana
6 weeks summer training in hfss,ludhiana6 weeks summer training in hfss,ludhiana
6 weeks summer training in hfss,ludhiana
 
Artificial intelligence project in jalandhar
Artificial intelligence project in jalandharArtificial intelligence project in jalandhar
Artificial intelligence project in jalandhar
 
6months industrial training in hfss, jalandhar
6months industrial training in hfss, jalandhar6months industrial training in hfss, jalandhar
6months industrial training in hfss, jalandhar
 
6 weeks summer training in data mining,jalandhar
6 weeks summer training in data mining,jalandhar6 weeks summer training in data mining,jalandhar
6 weeks summer training in data mining,jalandhar
 

Similar to Matlab final year project in ludhiana

Matlab practical and lab session
Matlab practical and lab sessionMatlab practical and lab session
Matlab practical and lab session
Dr. Krishna Mohbey
 
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docxMATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
andreecapon
 
More instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docxMore instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docx
gilpinleeanna
 

Similar to Matlab final year project in ludhiana (20)

6 weeks summer training in matlab,jalandhar
6 weeks summer training in matlab,jalandhar6 weeks summer training in matlab,jalandhar
6 weeks summer training in matlab,jalandhar
 
6months industrial training in matlab, jalandhar
6months industrial training in matlab, jalandhar6months industrial training in matlab, jalandhar
6months industrial training in matlab, jalandhar
 
From zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyondFrom zero to MATLAB hero: Mastering the basics and beyond
From zero to MATLAB hero: Mastering the basics and beyond
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Matlab practical and lab session
Matlab practical and lab sessionMatlab practical and lab session
Matlab practical and lab session
 
Chapter 1.ppt
Chapter 1.pptChapter 1.ppt
Chapter 1.ppt
 
Palm m3 chapter1b
Palm m3 chapter1bPalm m3 chapter1b
Palm m3 chapter1b
 
matlabchapter1.ppt
matlabchapter1.pptmatlabchapter1.ppt
matlabchapter1.ppt
 
Mmc manual
Mmc manualMmc manual
Mmc manual
 
MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1
 
Handout2.pdf
Handout2.pdfHandout2.pdf
Handout2.pdf
 
Raushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptxRaushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptx
 
Tutorial2
Tutorial2Tutorial2
Tutorial2
 
Matlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processingMatlab for beginners, Introduction, signal processing
Matlab for beginners, Introduction, signal processing
 
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docxMATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
MATLAB sessions Laboratory 1MAT 275 Laboratory 1Introdu.docx
 
Matlab Basic Tutorial
Matlab Basic TutorialMatlab Basic Tutorial
Matlab Basic Tutorial
 
1. Ch_1 SL_1_Intro to Matlab.pptx
1. Ch_1 SL_1_Intro to Matlab.pptx1. Ch_1 SL_1_Intro to Matlab.pptx
1. Ch_1 SL_1_Intro to Matlab.pptx
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
More instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docxMore instructions for the lab write-up1) You are not obli.docx
More instructions for the lab write-up1) You are not obli.docx
 
1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx
 

More from deepikakaler1

More from deepikakaler1 (20)

Vlsi final year project in ludhiana
Vlsi final year project in ludhianaVlsi final year project in ludhiana
Vlsi final year project in ludhiana
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhiana
 
Opnet final year project in ludhiana
Opnet final year project in ludhianaOpnet final year project in ludhiana
Opnet final year project in ludhiana
 
Labview phd project in ludhiana
Labview phd project in ludhianaLabview phd project in ludhiana
Labview phd project in ludhiana
 
Hfss final year project in ludhiana
Hfss final year project in ludhianaHfss final year project in ludhiana
Hfss final year project in ludhiana
 
Fuzzy logic mtech project in ludhiana
Fuzzy logic mtech project in ludhiana Fuzzy logic mtech project in ludhiana
Fuzzy logic mtech project in ludhiana
 
Embedded final year project in ludhiana
Embedded final year project in ludhianaEmbedded final year project in ludhiana
Embedded final year project in ludhiana
 
Data mining final year project in ludhiana
Data mining final year project in ludhianaData mining final year project in ludhiana
Data mining final year project in ludhiana
 
Android mtech project in ludhiana
Android  mtech project in ludhianaAndroid  mtech project in ludhiana
Android mtech project in ludhiana
 
.Net final year project in LUDHIANA
.Net final year project in LUDHIANA.Net final year project in LUDHIANA
.Net final year project in LUDHIANA
 
6 weeks/months summer training in vlsi,ludhiana
6 weeks/months summer training in vlsi,ludhiana6 weeks/months summer training in vlsi,ludhiana
6 weeks/months summer training in vlsi,ludhiana
 
6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana
 
6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana
 
6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhiana6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhiana
 
6months industrial training in hfss, ludhiana
6months industrial training in hfss, ludhiana6months industrial training in hfss, ludhiana
6months industrial training in hfss, ludhiana
 
6 weeks summer training in fuzzy logic,ludhiana
6 weeks summer training in fuzzy logic,ludhiana6 weeks summer training in fuzzy logic,ludhiana
6 weeks summer training in fuzzy logic,ludhiana
 
6months industrial training in fuzzy logic, ludhiana
6months industrial training in fuzzy logic, ludhiana6months industrial training in fuzzy logic, ludhiana
6months industrial training in fuzzy logic, ludhiana
 
6months industrial training in embedded, ludhiana
6months industrial training in embedded, ludhiana6months industrial training in embedded, ludhiana
6months industrial training in embedded, ludhiana
 
6 weeks summer training in embedded,ludhiana
6 weeks summer training in embedded,ludhiana6 weeks summer training in embedded,ludhiana
6 weeks summer training in embedded,ludhiana
 
6 weeks summer training in android,ludhiana
6 weeks summer training in android,ludhiana6 weeks summer training in android,ludhiana
6 weeks summer training in android,ludhiana
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

Matlab final year project in ludhiana

  • 1. CONTACT US ON- Address- Opp. Phagwara Bus Stand,Above Bella Pizza, Handa City Center,Phagwara Email-e2matrixphagwara@gmail.com, jalandhare2matrix@gmail.com Web site-www.e2matrix.com Contact no-07508509730, 09041262727, 7508509709
  • 2.
  • 3.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. square brackets to define matrices semicolon for next row in matrix
  • 11. A = 3 2 1 5 1 0 2 1 7 indices of matrix element(s)
  • 12. Try the following >> x=0:pi/12:2*pi; >> y=sin(x)
  • 13. A = 3 2 1 5 1 0 2 1 7 What’ll happen if you type A(:,:) ?
  • 14. 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
  • 15. Matlab Desktop Press to create new m-file in the matlab editor
  • 16. 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
  • 17.
  • 18. 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!
  • 19. Functions can have many outputs contained in a matrix Remember to use the Matlab help command for syntax >> help if if statement block
  • 20. Method is linear >> i = 4 i = 16 i = 256 While statement block Switch statement block Without ; to print output
  • 21. Click mouse on the left of the line of code to create a breakpoint local function workspace exit debug mode Debug menus
  • 22. 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
  • 24. 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