You are on page 1of 2

PROGRAM-1

Introduction to MATLAB
Introduction
MATLAB is a high performance language for technical computing. It integrates
computing, visualization , and programming in an easy to use environment where
problems and solutions are expressed in familiar mathematical notation.
The name MATLAB stands for matrix laboratory. MATLAB was originally written
to provide easy access to matrix.
STARTING AND QUITTING MATLAB

to start MATLAB, double-click the MT!" shortcut icon on your windows
desktop.
#ou will know MT!" is running when you see the special $%%& prompt in
the MT!" command window.
To end your MT!" session, select '(IT MT!" from the file menu in
the desktop or type )uit*or exit+ in the command window, or with easy way by
click on close button in the control box.
DESKTOP TOOLS:-
,. command window--use the command window to enter variables and run
function and m-files.
.. /ommand 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 previously selected statements.
0. /urrent directory browser-- MT!" file operations use the current directory
reference point. ny file you want to run must be in the current directory or on
the search path.
1. 2orkspace-- the MT!" workspace consists of the set of variables *named
arrays+ built up during a MT!" session and stored in memory.
BASIC COMMANDS:-
c!"r co##"nd$- removes all variables from workspace.
Cc co##"nd- clears the command window and homes the
cursor.
%!& co##"nd- help3topic% displays help about that topic if
it exists.
Loo'(or co##"nd- provides help by searching through all
the first lines of MT!" help topics and returning those
that contain a keyword you specify.
Edit co##"nd- enable you to edit *open+ any m-file in
editor window.
This command doesn4t open built-in function like s)rt.
NOTE--
a semicolon $5& at the end of a MT!" statement
suppresses printing of results.
If a statement does not fit on one line, use $...&, followed by
enter to indicate that the statement continues on the next line.
If we don4t specify an output variable, MT!" uses the
variable "n$ *short for answer+, to store the last result of a
calculation.
6se up arrow and down arrow for the previously used
commands entered in the command window.
To add an comment, use $7& before starting a statement.

You might also like