Professional Documents
Culture Documents
Chapter 1
Introduction to MATLAB
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly
accessible website, in whole or in part.
1
Essentials of MATLAB® Programming, 3rd Edition Chapman
Overview
Introduction
1.1 The Advantages of MATLAB
1.2 Disadvantages of MATLAB
1.3 The MATLAB Environment
1.4 Using MATLAB as a Calculator
1.5 Summary
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
2
Essentials of MATLAB® Programming, 3rd Edition Chapman
Introduction
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
3
Essentials of MATLAB® Programming, 3rd Edition Chapman
Introduction
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
4
Essentials of MATLAB® Programming, 3rd Edition Chapman
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
5
Essentials of MATLAB® Programming, 3rd Edition Chapman
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
6
Essentials of MATLAB® Programming, 3rd Edition Chapman
Details MATLAB
Window Command
displays Window
properties of file
selected above
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
7
Essentials of MATLAB® Programming, 3rd Edition Chapman
There are also two command-line oriented ways to get help: the help and
lookfor commands
The help command searches for an exact function name match, while the
lookfor command searches the quick summary information in each
function for a match
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
8
Essentials of MATLAB® Programming, 3rd Edition Chapman
Function Description
demo run MATLAB’s built-in demonstrations
clc clear the Command Window
clf clear the contents of the current figure window
clear clear the variables in the workspace
control-c abort running program, returns a command
prompt
diary keep track of everything done in MATLAB session
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
9
Essentials of MATLAB® Programming, 3rd Edition Chapman
MATLAB includes the which command to help you find out just which version
of a file is being executed and where it is located
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
10
Essentials of MATLAB® Programming, 3rd Edition Chapman
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
11
Essentials of MATLAB® Programming, 3rd Edition Chapman
1.5 Summary
A MATLAB user can get help by either using the Help Browser or the
command-line help functions help and lookfor
© 2018 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
12