3. Introduction
MATLAB MATrix LABoratory
Developed by CleveMoler in 1984 as a teaching tool
High performance language for technical computing
Typical uses are,
numerical computation
Data analysis ,plotting and visualization
Graphical user interface building
Algorithm development and modelling
4. MATLAB Desktop Tools
Command Window
Command History
Workspace
Current Directory
Editor Window
6. General Purpose Commands
clc , clear ,close all
save
who , whos
cd , ls
disp
Version
Pwd
Floor,round,abs
date
7. Clear
clear removes items from workspace,
freeing up system memory
Examples of syntax:
clear
8. Graph Functions
plot linear plot
stem discrete plot
grid add grid lines
Xlabel add X-axis label
Ylabel add Y-axis label
title add graph title
Subplot divide figure window
Figure create new figure window
Pause wait for user response
9. Arithmetic Operators
plus - Plus +
uplus - Unary plus +
minus - Minus -
uminus - Unary minus -
mtimes - Matrix multiply *
times - Array multiply .*
mpower - Matrix power ^
power - Array power .^
mldivide - Backslash or left matrix divide
Mrdivide - Slash or right matrix divide /
ldivide - Left array divide .
rdivide - Right array divide ./
10. Logical Operators
Short-circuit logical AND &&
Short-circuit logical OR ||
AND - Element-wise logical AND &
OR - Element-wise logical OR |
NOT - Logical NOT ~
XOR - Logical EXCLUSIVE OR
Any - True if any element of vector is nonzero
All - True if all elements of vector are nonzero
12. Relational Operator
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to
== Equal to
~= Not equal to
13. Matrix Creation
When entering a matrix, separate columns by
spaces or commas; separate rows by semicolons.
For example, typing:
A = [1 2; 3 4]
results in:
A = 1 2
3 4
21. GUI
• A graphical user interface (GUI) is a user
interface built with graphical objects, such as
buttons, text fields, sliders, and menus. In
general, these objects already have
meanings to most computer users.
22. User Interface Controls
• Push Buttons
• Toggle Buttons
• Radio Buttons
• Checkboxes
• Popup Menus
• Edit Text
• Axes
• Static Text
• Figures
26. Contact Us
• Con Person:
Sowmiya.S, Event Coordinator
• Con No:
7200045955
8807058158
• Mail Id:
Trichy.DSP@pantechmail.com
Senthilmurugan.m@pantechmail.com