Function A

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

function a=solucion(r)

A=[5,2,r;3,6,2*r-1;2,r-1,3*r]
b=[2;3;5]
s=A\b

>> r=1

r=

>> solucion(r)

A=

5 2 1

3 6 1

2 0 3

b=

s=

-0.0312

0.2344
1.6875

x=-10:.1:-5;

y=2+sin(x);

z=-5:.1:10;

t=exp(z);

plot(x,y,z,t)

grid on

xlabel('x'),ylabel('f(x)')

You might also like