0% found this document useful (0 votes)
36 views

Basics of MATLAB-II: Presented by T.S.L.V.Ayyarao

This document provides an overview of basic MATLAB functions and operations. It lists common mathematical functions like cosine, sine, and logarithms. It also demonstrates how to create subplots with multiple graphs in MATLAB and explains that array operations like multiplication and exponentiation are performed element by element on arrays.

Uploaded by

AR-T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Basics of MATLAB-II: Presented by T.S.L.V.Ayyarao

This document provides an overview of basic MATLAB functions and operations. It lists common mathematical functions like cosine, sine, and logarithms. It also demonstrates how to create subplots with multiple graphs in MATLAB and explains that array operations like multiplication and exponentiation are performed element by element on arrays.

Uploaded by

AR-T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Basics of MATLAB-II

Presented by
T.S.L.V.Ayyarao

Mathematical functions
Function
cos(x)

cosine

sin(x)

sine

tan(x)

tangent

atan(x)

Arc tangent

asin(x)

Arc sine

exp(x)

exponential

sqrt(x)

Square root

log(x)

Natural logrithm

abs(x)

Absolute value

subplot
Creates a figure with multiple graphs
>>Example:
>>x = 0:0.01:2*pi
>>y1 = sin(x);
>>Figure
>>subplot(2,2,1)
>>plot(x,y1)
>>title('First subplot')

Array Operations
Array arithmetic operations are done
element by element
.*

Element-by element multiplication

./

Element-by element division

.^

Element-by element exponentiation

You might also like