%example7p17
%define
the RHS vector.
ir=zeros(5,1); %initialize
and define non zero values
ir(1)=12*cos(30*pi/180)+j*12*sin(30*pi/180);
ir(5)=2*cos(pi/4)+j*2*sin(pi/4),
%echo
the vector
%now
define the matrix
y=[1,0,0,0,0; %first
row
-1,1+0.5j,-j,0,0.5j; %second row
0,-j,1.5+j,0,-0.5; %third row
-0.5,0,0,1.5+j,-1; %fourth row
0,0.5i,-0.5,-1,1.5+0.5i] %last row and do echo
v=y\ir %solve
equations and echo the answer