Hi, All!
say, i have a matrix:
eij= [0 1 0 1;1 0 1 1;0 1 0 1;1 1 1 0];x1=1; x2=2; x3=3; x4=4;
how can i make array xj and xi for this function
for i=1:1:4 and j=1:1:4xi = xj
Ai =
i hope the answer would be like this:
A1= 0(1 - 1) + 1(2 - 1) + 0(3 - 1) + 1(4 - 1)=4A2= ...; A3=..., A4=...
i am trying to use repmat function but i am stuck. maybe anyone has better solution?
Best Answer