Uploaded by Soujanya Bhat

MATGRADER

advertisement
PROBLEM 1:
A=sym([2 -3;6 4])
[Q,R]= qr(A)
B= [7 -4 4;-4 5 0;4 0 9]
p= poly(B)
e= eig(B)
[V,D]= eig(B)
C= [1 -1;-2 2;2 -2]
s = svd(C)
PROBLEM 2:
A= sym([1 2 3;5 6 7;9 10 11;13 14 15])
nsA= null(A)
csA= colspace(A)
rsA= colspace(A')
lnsA= null(A')
PROBLEM 3:
a= [5 5 5 15 15 15 15 15 15 25 25 25 25 35 35 35 45 45 45 45 45 55 55 55 55 55 55 55 55 65 65 65 65 65 75 75 85 85 85 85 85];
c= moment(a,3)
sk= skewness(a)
m= [1 2 3 4 5 6 7 8 9]';
n= [2 6 7 8 10 11 11 10 9]';
p= fit(m,n,'poly2')
plot(p,m,n)
PROBLEM 4:
pd= makedist('Binomial','N',15,'p',0.33)
a= [7];
b= [9];
c= [5];
d= [4];
amx= cdf(pd,a)
alx= 1- cdf(pd,b)
atx= cdf(pd,c)-cdf(pd,d)
m= mean(pd)
Download