IRDYn/vec2linearSymMat.m

5 lines
137 B
Mathematica
Raw Normal View History

2024-01-23 13:42:25 +00:00
function matrix = vec2linearSymMat(w)
matrix = [w(1),w(2),w(3),zeros(1,3);...
0,w(1),0,w(2),w(3),0;...
0,0,w(1),0,w(2),w(3)];
end