You are on page 1of 5

>> a=3

a=

>> A=[1 1 1;1 a^2 a;1 a a^2]

A=

1 1 1

1 9 3

1 3 9

>> a=8

a=

>> A=[111;1 a^2 a;1 a a^2]

Error using vertcat

Dimensions of matrices being concatenated are not consistent.

>> A=[1 1 1;a^2 a;1 a a^2]

Error using vertcat

Dimensions of matrices being concatenated are not consistent.

>> A=[1 1 1;1 a^2 a;1 a a^2]

A=
1 1 1

1 64 8

1 8 64

>> Z=3+i4

Undefined function or variable 'i4'.

>> Z=3+i*4

Z=

3.0000 + 4.0000i

>> a=9

a=

>> b=sqrt(a)

b=

>> b=a^1/2

b=

4.5000
>> a=-(1/2)+i*(sqrt(3)/2)

a=

-0.5000 + 0.8660i

>> b=3

b=

>> A=[1 1 1;1 a^2 a;1 a a^2]

A=

1.0000 + 0.0000i 1.0000 + 0.0000i 1.0000 + 0.0000i

1.0000 + 0.0000i -0.5000 - 0.8660i -0.5000 + 0.8660i

1.0000 + 0.0000i -0.5000 + 0.8660i -0.5000 - 0.8660i

>> B=A*A^-1

B=

1.0000 + 0.0000i -0.0000 + 0.0000i 0.0000 + 0.0000i

-0.0000 - 0.0000i 1.0000 + 0.0000i 0.0000 - 0.0000i

-0.0000 - 0.0000i -0.0000 + 0.0000i 1.0000 + 0.0000i

>> C=[1.45+i*0.67;-1+i*0;-0.60+i*0.67]
C=

1.4500 + 0.6700i

-1.0000 + 0.0000i

-0.6000 + 0.6700i

>> I=[B]*[C]

I=

1.4500 + 0.6700i

-1.0000 - 0.0000i

-0.6000 + 0.6700i

>> ia=1.45+i*0.67

ia =

1.4500 + 0.6700i

>> ib=-1+i*0

ib =

-1

>> ic=-0.60+i*0.67

ic =

-0.6000 + 0.6700i
>> C=[ia;ib;ic]

C=

1.4500 + 0.6700i

-1.0000 + 0.0000i

-0.6000 + 0.6700i

>> I=B*C

I=

1.4500 + 0.6700i

-1.0000 - 0.0000i

-0.6000 + 0.6700i

You might also like