0% found this document useful (0 votes)
3 views6 pages

Graph

The document provides MATLAB commands for various mathematical operations including matrix addition, multiplication, and dot multiplication. It also includes commands to plot specific functions such as y = e*cos(t) - 2*t, f(x) = x*cos(x), g(x) = tan(x), and 3D graphs for functions involving sine and cosine. Additionally, it specifies the ranges for the variables involved in each plot.

Uploaded by

maborambo58
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views6 pages

Graph

The document provides MATLAB commands for various mathematical operations including matrix addition, multiplication, and dot multiplication. It also includes commands to plot specific functions such as y = e*cos(t) - 2*t, f(x) = x*cos(x), g(x) = tan(x), and 3D graphs for functions involving sine and cosine. Additionally, it specifies the ranges for the variables involved in each plot.

Uploaded by

maborambo58
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Write matlab command to solve the following

epressions: Where x=10, y=2, t=5 r =15


Rule:
1) Matrix Addition or Subtraction ( +, -) :
- Both matrices must be same size
(Corresponding element by element
operation)

2) Matrix Multiplication (*):


- 1st matrix column must be equal to 2nd
matrix row.
(row by column operation)

3) Matrix dot Multiplication (.*):


- Only applicable for vectors (one
dimensional matrix)
- Both matrices must be same size
(Corresponding element by element
operation)

Write matlab command to plot the


function of y = e cos ( t )
−2 t

over −5 ≤ t ≤5
Plot the following two functions on the
same graph.
f(x) = x cos(x)
g(x) = tan(x)
over the x values range from 0 to 10π

plot 3d graph for the following function


y = x sin(x)
z = x cos(x)
x values range from -10pi to 10pi
plot 3d graph for the following function
xt = ¿
yt = sin ( √ 32 t )
zt = ¿

t values range from 0 to 40pi

You might also like