Vous êtes sur la page 1sur 3

# M.

## 1. Perform the following and complex Arithmetic, Exponential, Logarithmic, Trigonometric

numbers operations in MATLAB
log 10 ( e3 )

(i)

ej/4

(ii)
(iii)

1 3
r
, where r = 2 1
3

A=

sin

(iv)
(v)

cos

A=

1
x
2
x

1
y
2
y

1
z
2
z

and B =

1
2 4
5 3 0
1 2 1

A=

1
10
10 i

and B =

z
e
o
log 100 sin 60

; z = 5, x = -2

1
2 A+C, where A =

[ ]
2 1 5
1 6 5
3 4 6

and C =

[ ]
4 5
3 4
2 8

6
5
4

## 5. Write a program to find (a) Transpose of A (b) A 2, where A =

1
2
x
log 5 e

; x is user-

defined.
6. Write the commands to draw two 4x4 matrices and perform the following operations on
it.
1

+ , - , * (term by term)

## Describe Identity matrices and draw the matrix given below

[ ]
2 0 1
0 2 1
0 0 1

7. Obtain the solution for the variables y1, y2 and y3 by writing a program in MATLAB for
the following equationsy1 + y2 y3 = 2
-y1 + 3y2 y3= 2
3y1- 5y2 2y3 = 0
8. Write a program to plot a curve for a function described by the equation

y = x3 + 2x2 5, where x varies from -10 to 10. The curve must be labelled and titled.
9. Write a program to plot the curve fora = 10e-0.2t for t = 0 50.Show the grid lines on
the graph. The curve must be labelled and titled.
10. Write a program to plot the curves for functions, y = sin 2x,y = cosxand y = 3x + 2 in
a single figure window using plot command. Usegtext command to differentiate the
functions.
11. Write a program to plot the curves for functions, y = sin 2x,y = cosxand y = 3x + 2 in
a (2 x 2) splitted figure window usingsubplot command. The curves must be labelled and
titled.

## M.tech I semMatlab Exercise

12. Divide the graph into (3 x 2) and plot curves for linear, parabolic, expontial rise,
expontial fall, sine and cosine functions. The curves must be labelled and titled.
13. Divide the figure window into 4 sub-windows and plot following functions(a) v = 4i
(b) y = x2
(c) f = sin t
1

(d) f2 = cos t

14. Write a program to plot the open circuit characteristics of a DC generator at 1500rpm
with following values of If and Ei
If
Ei

0
5

0.4
30

1.0
70

1.5
110

2.0
150

3.0
215

4.0
240

5.0
250

6.0
260

## The graph must be labelled and titled.

15. Write a program to plot a bar graph to show the temperature of a city for the data entered
by the operator as d1, d2, d3, d4, d5 and d6 (user-defined) for the month shown in the
table belowMonth
September
Temperature d1

October
d2

November
d3

December
d4

January
d5

February
d6

16. Write a program to plot a sliced pie-chart for the concentration of the industries in a city
entered by the operator i1, i2, i3, i4, i5 and i6 as in table belowIndustry
No.
Number of
Industries

i1

i2

i3

i4

i5

i6