Matlab 与通信仿真
1
1.在Command Window 里面计算
(1)(358)510++÷⨯; >>(3+5+8)/5*10 ans=32
(2)sin(3)9/5π÷; >>sin(3*pi)/sqrt(9/5) ans=2.7384e-16
(3)123456789A ⎡⎤⎢⎥=⎢⎥⎢⎥⎣⎦,789456123B ⎡⎤⎢⎥=⎢⎥⎢⎥⎣⎦
,计算:,,\,/C A B D A B A C C B =⨯=+; >> a=[1 2 3;4 5 6;7 8 9];
>> b=[7 8 9;4 5 6;1 2 3];
>> c=a*b
c =
18 24 30
54 69 84
90 114 138
>> d=a+b
d =
8 10 12
8 10 12
8 10 12
>> e=a\c
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 1.541976e-018.
e =
34.0000 22.0000 62.0000