FormationControlSimulation/SOURCE/calcErrVec.m

8 lines
163 B
Matlab
Raw Permalink Normal View History

2019-06-17 14:31:50 +07:00
function err = calcErrVec(edgeL,x)
pkg load symbolic
tmp = edgeL2adj(edgeL);
M = adj2inc(tmp) ;
%% 2 degree coordinate
err = kron(M,eye(2));
endfunction