Documente Academic
Documente Profesional
Documente Cultură
koushik.ismd@gmail.com
Before Starting…
Albert Einstein
2
About the Course…
3
In the WWW…
https:// www.iitism.ac.in/~koushik/ESC503
4
Outline
What is MATLAB?
Important Utilities
Basic Graphics
5
What is MATLAB
6
Where we will get …
https://www.iitism.ac.in/~matlab
7
Controlling Environment
8
Variable
9
Variable Contd…
10
MATLAB Classes
11
Genrating Matrices
12
Generating Matrices Contd…
13
Generating Matrices Contd…
14
Subsetting Matrices
15
Example Contd…
16
Extension of Matrices
17
Addition
18
Multiplication
19
Element-wise Operations
20
Example
21
Special Variables
22
Useful manipulation functions
23
Relational Operators
24
Logical Operators
25
Math Operators
26
Elementary Math functions
27
Elementary Math functions Contd…
28
Graphics Fundamentals…2D Plotting
29
2D Plotting Contd…
30
2D Plotting Contd…
31
2D Plotting Contd…
32
Subplotting Contd…
33
Importing and Exporting Data
34
Import and Export from Excel Contd…
35
Import and Export from txt Contd…
36
Flow Control
37
‘if’ Statement Contd…
38
‘switch’ Statement Contd…
39
‘for’ Loop Contd…
40
‘while’ Loop Contd…
41
‘break’ Statement Contd…
42
Tips for Efficient Programming
43
Special Mention
44
Operator Precedence (Left to Right)
45
Formatting Precision
46
Formatting Precision Contd…
47
Example
% file: accuracy.m
%
% Examples of different accuracy in Matlab
% phi = vpa((1+sqrt(5))/2)
% To get full precision, use symbolic
arguments
phi = vpa((1+sqrt(sym(5)))/2)
pi_40precision = vpa(pi,40)
48
www.iitism.ac.in/~koushik
49