Professional Documents
Culture Documents
Program: Roots
Program: Roots
Page no.4
p=1
8 10
r=roots(p)
r = -4.7934
0.7980 + 0.9010i
0.7980 - 0.9010i
-0.4585 + 1.1899i
-0.4585 - 1.1899i
-0.8856
q = [1 2 3 ; 4 5 6 ; 8 9 0 ]
q=1
e = eigs(q)
RESULT
e = 12.6114
-6.2295
-0.3819
Roll no.=1228421020
Date 12/8/13
subject= N.T . LAB EEE-351
Software=MATLAB 7.12.0(R2011a)
Page no.5
a = [ 1 6 0 ; 0 1 5 ; 11 0 1 ]
a =1
11
b = [13;17;14]
b = 13
17
14
x = linsolve(a,b)
x =1.0000
2.0000
3. 0000
Precautions
Use correct syntax while solving the problms
Save the file after completing the program
Use the HELP option for proper syntax information
Roll no.=1228421020