Escolar Documentos
Profissional Documentos
Cultura Documentos
MATLAB
Aula 2
>> ans = 5 0
5 0
>> ans = 3 0
4 0
>> ans = 17 8
16 9
>> ans = 9 4
16 1
g(x)=xA+3xB-4x@-1
g(x)= 1xA+0xC+3xB-4x@+0x-1
>> g=[1 0 3 -4 0 -1]
h(x)=x@-4
>> h=[1 0 -4]
h(x)=x@-4
>> h=[1 0 -4]
Ex.: (xA+3xB-4x@-1)/(x@-4)
= xB+7x-4
>>ans = 1 0 7 -4
Ex.: >>[quociente,resto]=deconv(g,h)
quociente = 1 0 7 -4
resto = 0 0 0 0 28 -17
Ex.: g(x)=xA+3xB-4x@-1
g(x)=5xC+9x@-8x
Ex.:
>>syms x % x uma varivel simblica
>>f = 3*x^2 - 5*x + 1
Ex.:
>>x=2
>>f= 3*x^2 5*x + 1
>>f = 3