002 MATLAB Introduction DAY 1
002 MATLAB Introduction DAY 1
002 MATLAB Introduction DAY 1
MATLAB® is a high-performance
language for technical computing.
It integrates computation, visualization,
and programming in an easy-to-use
environment where problems and solutions
are expressed in familiar mathematical
notation.
Typical uses of MATLAB:
Quitting MATLAB
To end your MATLAB session, select Exit
MATLAB from the File menu in the desktop,
or type quit in the Command Window.
MATLAB Desktop
Desktop Tools
• Command Window
• Command History
• Start Button and Launch Pad
• Help Browser
• Current Directory Browser
• Workspace Browser
• Array Editor
• Editor/Debugger
• Profiler
Command Window
Use the Command Window to enter
variables and run functions from M-files.
Command History
Statements you enter in the Command
Window are logged in the Command History.
In the Command History, you can view
previously run statements, and copy and
execute selected statements.
Start Button and Launch Pad
The MATLAB Start button provides easy
access to tools, demos, and documentation.
The Launch Pad provides similar access
in a tree view.
Help Browser
Use the Help browser to search and view
documentation and demos for all your Math
Works products. The Help browser is a Web
browser integrated into the MATLAB desktop
that displays HTML documents.
To open the Help browser, click the help
button in the toolbar, or type helpbrowser
in the Command Window.
Current Directory Browser
MATLAB file operations use the current
directory and the search path as reference
points. Any file you want to run must either be
in the current directory or on the search path.
A quick way to view or change the current
directory is by using the Current Directory
field in the desktop toolbar as shown below.
Workspace Browser
The MATLAB workspace consists of the
set of variables (named arrays) built up
during a MATLAB session and stored in
memory.
You add variables to the workspace by
using functions, running M-files, and loading
saved workspaces.
Array Editor
Double-click a variable in the Workspace
browser to see it in the Array Editor.
Use the Array Editor to view and edit a
visual representation of one- or two-
dimensional numeric arrays, strings, and cell
arrays of strings that are in the workspace.
Editor/Debugger
Use the Editor/Debugger to create and
debug M-files, which are programs you write
to run MATLAB functions.
The Editor/Debugger provides a graphical
user interface for basic text editing, as well as
for M-file debugging.
Profiler
MATLAB includes a graphical user
interface, the Profiler, to help you improve the
performance of your M-files.