SlideShare a Scribd company logo
1 of 16
Download to read offline
•
MATLAB ASHOK(191890)
PRACTICAL-1
Practical-1: Introduction to MATLAB.
Theory:
. MATLAB is a programming language developed by MathWorks. It started out as a matrix programming language
where linear algebra programming was simple. It can be run both under interactive sessions and as a batch job.
.MATLAB (matrix laboratory) is a fourth-generation high-level programming language and interactive environment
for numerical computation, visualization and programming.
. It allows matrix manipulations; plotting of functions and data; implementation of algorithms; creation of user
interfaces; interfacing with programs written in other languages, including C, C++, Java, and FORTRAN; analyze
data; develop algorithms; and create models and applications.
. It has numerous built-in commands and math functions that help you in mathematical calculations, generating
plots, and performing numerical methods.
Uses of MATLAB:
MATLAB is widely used as a computational tool in science and engineering encompassing the fields of physics,
chemistry, math and all engineering streams. It is used in a range of applications including –
. Signal Processing and Communications
. Image and Video Processing
. Control Systems
. Test and Measurement
. Computational Finance .
Computational Biology
MATLAB Environment:
. Command Window
. Command History
. Workspace .
Current Directory
. Edit Window .
Figure Window
Command Window:
MATLAB ASHOK(191890)
Whenever MATLAB is invoked, the main window called command window is activated. The command window
displays the command prompt’>>’ and a cursor where commands are entered and are executed instantaneously.
Command History:
Command history window consists of a list of all the commands that are entered at the command window. These
commands remain in the list until they are deleted. Any command may be executed by selecting and double clicking
it with the mouse.
Workspace:
A workspace is a collection of all the variables that have been generated so far in the current MATLAB session and
shows their data type and size. All the commands executed from Command Window and all the script files executed
from the Command Window share common workspace, so they can share all the variables.
MATLAB ASHOK(191890)
Current Directory:
The Current Directory window contains all the files and folders present in the Current Directory. To run any file, it
must either be in the Current Directory or on the search path.
Edit Window:
An Edit Window is used to create a new program file, or to modify existing files. In this window, programs can be
written, edited and saved. The programs written using the MATLAB editor are automatically assigned an extension
(.m) by the editor and are known as M- files.
Figure Window:
A Figure Window is a separate window with default white background and is used to display MATLAB graphics.
The results of all the graphic commands executed are displayed in the figure window.
MATLAB ASHOK(191890)
Introduction:
a) Making variables :----------------------
a = 2; it's a number
a = '2'; it's a string
a = [1 2 3 4 5]: it's a vector(array) (in JAVA: int array[] = new int[5])
a = [ 1 2; 3 4] it's a matrix (in JAVA: int array[][] = new int[2][2])
a = {'a',2;'b',3} it's a cell (in JAVA structure)
MATLAB ASHOK(191890)
Sqrt()
MATLAB ASHOK(191890)
• Magic(): create square matrix n*n
• Transpose():transpose of the matrix
• Flipup():flip the matrix up and down
• Filplr():flip the matrix left to right
MATLAB ASHOK(191890)
• Inv(): inverse of the matrix
• a.^2 : square of matrix
• eye() : identity matrix
• rand(): create a matrix from random number
MATLAB ASHOK(191890)
C) Basic plot 1) 2-D plot 2) 3-D plot
Syntax
• plot(X,Y)
• plot(X,Y,LineSpec) ---creates the plot using the specified line style, marker, and color.
• plot(X1,Y1,...,Xn,Yn)-- plots multiple pairs of x- and y-coordinates on the same set of axe
•
MATLAB ASHOK(191890)
• plot(X1,Y1,LineSpec1,...,Xn,Yn,LineSpecn)-- assigns specific line styles, markers, and colors to each x-y
pair.
• plot(Y)-- plots Y against an implicit set of x-coordinates
•
MATLAB ASHOK(191890)
• plot(Y,LineSpec)--- plots Y using implicit x-coordinates, and specifies the line style, marker, and color.
• plot(tbl,xvar,yvar)--- plots the variables xvar and yvar from the table tbl.
• plot(tbl,yvar)--- plots the specified variable from the table against the row indices of the table.
•
MATLAB ASHOK(191890)
• plot(ax,___)--- displays the plot in the target axes. Specify the axes as the first argument in any of the previous
syntaxes.
• plot(___,Name,Value)-- specifies Line properties using one or more name-value arguments.
•
MATLAB ASHOK(191890)
• p = plot(___)--- returns a Line object or an array of Line objects.
•
MATLAB ASHOK(191890)
3-D Plot
3-D point or line plot
• plot3(X,Y,Z)
• plot3(X,Y,Z,LineSpec)
• plot3(X1,Y1,Z1,...,Xn,Yn,Zn)
•
MATLAB ASHOK(191890)
• plot3(X1,Y1,Z1,LineSpec1,...,Xn,Yn,Zn,LineSpecn)
• plot3(tbl,xvar,yvar,zvar)
•
MATLAB ASHOK(191890)
• plot3(ax,___)
• plot3(___,Name,Value)

More Related Content

Similar to Matlab practical ---1.pdf (20)

DSP Mat Lab
DSP Mat LabDSP Mat Lab
DSP Mat Lab
 
EE6711 Power System Simulation Lab manual
EE6711 Power System Simulation Lab manualEE6711 Power System Simulation Lab manual
EE6711 Power System Simulation Lab manual
 
Introduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdfIntroduction to Matlab for Engineering Students.pdf
Introduction to Matlab for Engineering Students.pdf
 
MATLAB guide
MATLAB guideMATLAB guide
MATLAB guide
 
MATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.pptMATLAB workshop lecture 1MATLAB work.ppt
MATLAB workshop lecture 1MATLAB work.ppt
 
Mmc manual
Mmc manualMmc manual
Mmc manual
 
Matlab tut2
Matlab tut2Matlab tut2
Matlab tut2
 
MATLAB Programming
MATLAB Programming MATLAB Programming
MATLAB Programming
 
Matlab workshop
Matlab workshopMatlab workshop
Matlab workshop
 
Matlab summary
Matlab summaryMatlab summary
Matlab summary
 
Summer training introduction to matlab
Summer training  introduction to matlabSummer training  introduction to matlab
Summer training introduction to matlab
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Matlab basic and image
Matlab basic and imageMatlab basic and image
Matlab basic and image
 
Matlab lecture
Matlab lectureMatlab lecture
Matlab lecture
 
Matlab anilkumar
Matlab  anilkumarMatlab  anilkumar
Matlab anilkumar
 
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptxMATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
MATLAB Workshop yugjjnhhasfhlhhlllhl.pptx
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
 
Seminar on MATLAB
Seminar on MATLABSeminar on MATLAB
Seminar on MATLAB
 
Matlab
MatlabMatlab
Matlab
 
Matlab Manual
Matlab ManualMatlab Manual
Matlab Manual
 

More from Central university of Haryana

MATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdf
MATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdfMATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdf
MATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdfCentral university of Haryana
 

More from Central university of Haryana (20)

Practical --2..pdf
Practical --2..pdfPractical --2..pdf
Practical --2..pdf
 
Practical --1.pdf
Practical --1.pdfPractical --1.pdf
Practical --1.pdf
 
ML Lab.docx
ML Lab.docxML Lab.docx
ML Lab.docx
 
MATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdf
MATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdfMATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdf
MATLAB-Cheat-Sheet-for-Data-Science_LondonSchoolofEconomics (1).pdf
 
LittleBookOfRuby.pdf
LittleBookOfRuby.pdfLittleBookOfRuby.pdf
LittleBookOfRuby.pdf
 
all matlab_prog.pdf
all              matlab_prog.pdfall              matlab_prog.pdf
all matlab_prog.pdf
 
Practical13.docx
Practical13.docxPractical13.docx
Practical13.docx
 
Practical 111.docx
Practical 111.docxPractical 111.docx
Practical 111.docx
 
Matlab Practical--11.pdf
Matlab Practical--11.pdfMatlab Practical--11.pdf
Matlab Practical--11.pdf
 
Matlab Practical--11.docx
Matlab Practical--11.docxMatlab Practical--11.docx
Matlab Practical--11.docx
 
Matlab Practical--9.docx
Matlab Practical--9.docxMatlab Practical--9.docx
Matlab Practical--9.docx
 
Matlab Practical-- 12.pdf
Matlab Practical-- 12.pdfMatlab Practical-- 12.pdf
Matlab Practical-- 12.pdf
 
Matlab practical ---9.pdf
Matlab practical ---9.pdfMatlab practical ---9.pdf
Matlab practical ---9.pdf
 
Matlab practical ---7.pdf
Matlab practical ---7.pdfMatlab practical ---7.pdf
Matlab practical ---7.pdf
 
Matlab practical ---6.pdf
Matlab practical ---6.pdfMatlab practical ---6.pdf
Matlab practical ---6.pdf
 
Matlab practical ---5.pdf
Matlab practical ---5.pdfMatlab practical ---5.pdf
Matlab practical ---5.pdf
 
Matlab practical ---4.pdf
Matlab practical ---4.pdfMatlab practical ---4.pdf
Matlab practical ---4.pdf
 
Matlab practical ---3.pdf
Matlab practical ---3.pdfMatlab practical ---3.pdf
Matlab practical ---3.pdf
 
Matlab practical ---2.pdf
Matlab practical ---2.pdfMatlab practical ---2.pdf
Matlab practical ---2.pdf
 
Matlab practical --8.pdf
Matlab practical --8.pdfMatlab practical --8.pdf
Matlab practical --8.pdf
 

Recently uploaded

Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxpritamlangde
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...ssuserdfc773
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...ppkakm
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information SystemsAnge Felix NSANZIYERA
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...manju garg
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessorAshwiniTodkar4
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257subhasishdas79
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesChandrakantDivate1
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptAfnanAhmad53
 

Recently uploaded (20)

Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information Systems
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
👉 Yavatmal Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Girl S...
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 

Matlab practical ---1.pdf

  • 1.
  • 2. MATLAB ASHOK(191890) PRACTICAL-1 Practical-1: Introduction to MATLAB. Theory: . MATLAB is a programming language developed by MathWorks. It started out as a matrix programming language where linear algebra programming was simple. It can be run both under interactive sessions and as a batch job. .MATLAB (matrix laboratory) is a fourth-generation high-level programming language and interactive environment for numerical computation, visualization and programming. . It allows matrix manipulations; plotting of functions and data; implementation of algorithms; creation of user interfaces; interfacing with programs written in other languages, including C, C++, Java, and FORTRAN; analyze data; develop algorithms; and create models and applications. . It has numerous built-in commands and math functions that help you in mathematical calculations, generating plots, and performing numerical methods. Uses of MATLAB: MATLAB is widely used as a computational tool in science and engineering encompassing the fields of physics, chemistry, math and all engineering streams. It is used in a range of applications including – . Signal Processing and Communications . Image and Video Processing . Control Systems . Test and Measurement . Computational Finance . Computational Biology MATLAB Environment: . Command Window . Command History . Workspace . Current Directory . Edit Window . Figure Window Command Window:
  • 3. MATLAB ASHOK(191890) Whenever MATLAB is invoked, the main window called command window is activated. The command window displays the command prompt’>>’ and a cursor where commands are entered and are executed instantaneously. Command History: Command history window consists of a list of all the commands that are entered at the command window. These commands remain in the list until they are deleted. Any command may be executed by selecting and double clicking it with the mouse. Workspace: A workspace is a collection of all the variables that have been generated so far in the current MATLAB session and shows their data type and size. All the commands executed from Command Window and all the script files executed from the Command Window share common workspace, so they can share all the variables.
  • 4. MATLAB ASHOK(191890) Current Directory: The Current Directory window contains all the files and folders present in the Current Directory. To run any file, it must either be in the Current Directory or on the search path. Edit Window: An Edit Window is used to create a new program file, or to modify existing files. In this window, programs can be written, edited and saved. The programs written using the MATLAB editor are automatically assigned an extension (.m) by the editor and are known as M- files. Figure Window: A Figure Window is a separate window with default white background and is used to display MATLAB graphics. The results of all the graphic commands executed are displayed in the figure window.
  • 5. MATLAB ASHOK(191890) Introduction: a) Making variables :---------------------- a = 2; it's a number a = '2'; it's a string a = [1 2 3 4 5]: it's a vector(array) (in JAVA: int array[] = new int[5]) a = [ 1 2; 3 4] it's a matrix (in JAVA: int array[][] = new int[2][2]) a = {'a',2;'b',3} it's a cell (in JAVA structure)
  • 7. MATLAB ASHOK(191890) • Magic(): create square matrix n*n • Transpose():transpose of the matrix • Flipup():flip the matrix up and down • Filplr():flip the matrix left to right
  • 8. MATLAB ASHOK(191890) • Inv(): inverse of the matrix • a.^2 : square of matrix • eye() : identity matrix • rand(): create a matrix from random number
  • 9. MATLAB ASHOK(191890) C) Basic plot 1) 2-D plot 2) 3-D plot Syntax • plot(X,Y) • plot(X,Y,LineSpec) ---creates the plot using the specified line style, marker, and color. • plot(X1,Y1,...,Xn,Yn)-- plots multiple pairs of x- and y-coordinates on the same set of axe
  • 10. • MATLAB ASHOK(191890) • plot(X1,Y1,LineSpec1,...,Xn,Yn,LineSpecn)-- assigns specific line styles, markers, and colors to each x-y pair. • plot(Y)-- plots Y against an implicit set of x-coordinates
  • 11. • MATLAB ASHOK(191890) • plot(Y,LineSpec)--- plots Y using implicit x-coordinates, and specifies the line style, marker, and color. • plot(tbl,xvar,yvar)--- plots the variables xvar and yvar from the table tbl. • plot(tbl,yvar)--- plots the specified variable from the table against the row indices of the table.
  • 12. • MATLAB ASHOK(191890) • plot(ax,___)--- displays the plot in the target axes. Specify the axes as the first argument in any of the previous syntaxes. • plot(___,Name,Value)-- specifies Line properties using one or more name-value arguments.
  • 13. • MATLAB ASHOK(191890) • p = plot(___)--- returns a Line object or an array of Line objects.
  • 14. • MATLAB ASHOK(191890) 3-D Plot 3-D point or line plot • plot3(X,Y,Z) • plot3(X,Y,Z,LineSpec) • plot3(X1,Y1,Z1,...,Xn,Yn,Zn)