% matchMapModified formation correlation matrix% inputMat: matrix
The number of the nodes in % nnodes: int.
Assert (ismatrix (inputMat));
Assert (length (size (inputMat))==2).
Assert (size (inputMat, 2)==2).
Assert (isscalar (nnodes));
N=size (inputMat, 1);
Matched=zeros (nnodes nnodes);
For I=1: n
Left=inputMat (I, 1);
Right=inputMat (I, 2);
Matched (left, right)=1;
Matched (right and left)=1;
End
end
CodePudding user response:
In the matlabCodePudding user response:
This is not a c + +