% mat1

price = [ 54 21 ];
n = [1;2];
D = [ 54 21; 55 18; 56 27];

secnm = 'Bond|Stock';
daynm = 'Mon|Tue|Wed';
quantity = [1;2];

price;
quantity;
value = price*quantity;

payoff = [60 40; 60 10];

r2 = [130 ; 50];
q2 = inv(payoff)*r2;
