Home > Software engineering >  What code, how to do ah
What code, how to do ah

Time:11-07

The function [matched]=matchMapModified (inputMat nnodes)

% matchMapModified formation correlation matrix% inputMat: matrix (n, 2). The relationship between list,
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 matlab

CodePudding user response:

This is not a c + +
  • Related