Professional Documents
Culture Documents
P=
1 5 6 7
>> q=[6 8 3 0]
q=
6 8 3 0
>> polyval(p,2)
Undefined function or variable 'p'.
ans =
47
>> r=root(p)
Undefined function or variable 'p'.
>> w=P+q
w=
7 13 9 7
>> q=0
q=
>> q=[6 8 9 0 1]
q=
6 8 9 0 1
>> c=conv(P,q)
c=
6 38 85 135 111 68 6 7
>> r=roots(p)
Undefined function or variable 'p'.
r=
-3.9259 + 0.0000i
-0.5371 + 1.2225i
-0.5371 - 1.2225i
>> r=roots(q)
r=
-0.7173 + 1.0111i
-0.7173 - 1.0111i
0.0506 + 0.3254i
0.0506 - 0.3254i
>> r=roots(P)
r=
-3.9259 + 0.0000i
-0.5371 + 1.2225i
-0.5371 - 1.2225i
>> s=roots(q)
s=
-0.7173 + 1.0111i
-0.7173 - 1.0111i
0.0506 + 0.3254i
0.0506 - 0.3254i
>> p=[0 1 5 6 7]
p=
0 1 5 6 7
r=
-3.9259 + 0.0000i
-0.5371 + 1.2225i
-0.5371 - 1.2225i
A=
-1.3333 -1.5000 0 -0.1667
1.0000 0 0 0
0 1.0000 0 0
0 0 1.0000 0
B=
1
0
0
0
C=
D=
>> a = 2*R*C*S
Undefined function or variable 'R'.
a=
4.7708 + 5.7183i
2.4334 - 0.7034i
-1.1281 + 2.2679i
>> R=10e3
R=
10000
>> C=10e-6
C=
1.0000e-05
>> L=10e-3
L=
0.0100
>> a=2*R*C
a=
0.2000
>> b=L*C*S*S
Undefined function or variable 'S'.
>> b=L*C
b=
1.0000e-07
>> c=R*C
c=
0.1000
>> l=[0,2 1]
l=
0 2 1
>> l=[0.2 1]
l=
0.2000 1.0000
>> t=[1e-7 0.1 1]
t=
>> g=(l*t)-1
Error using *
Inner matrix dimensions must agree.
>> u=conv(l,t)
u=
>> u=conv(e,t)
Undefined function or variable 'e'.
>> u=[0 0 0 2 3 1]
u=
0 0 0 2 3 1
>> w=[0 0 0 0 0 1Ç
w=[0 0 0 0 0 1Ç
↑
Error: The input character is not valid in MATLAB statements or expressions.
>> w=[0 0 0 0 0 1]
w=
0 0 0 0 0 1
>> x = w * u
Error using *
Inner matrix dimensions must agree.
>> x = w * u
Error using *
Inner matrix dimensions must agree.
>> x=u*w
Error using *
Inner matrix dimensions must agree.
>> x=u-w
x=
0 0 0 2 3 0
>> [A,B,C,D]=tf2ss(p,x)
Error using tf2ss (line 57)
Order of denominator must be greater than or equal to order of numerator.
>> [A,B,C,D]=tf2ss(p,x)
Error using tf2ss (line 57)
Order of denominator must be greater than or equal to order of numerator.
>> [A,B,C,D]=tf2ss(p,x)
Error using tf2ss (line 57)
Order of denominator must be greater than or equal to order of numerator.
>> [A,B,C,D]=tf2ss(x,p)
A=
-5 -6 -7
1 0 0
0 1 0
B=
1
0
0
C=
2 3 0
D=
0