?? coeff.m
字號:
% This file calculates the Bezier coefficient Matrix
% based on the order of the curve - oc
% it returns a (oc + 1) * (oc + 1) matrix
function returnvalue = coeff(oc)
% initialize the vector
for i = 1:oc + 1
for j = 1:oc + 1
A(i,j) = 0.0;
end
end
for i = 0:oc
ii = i + 1;
for j = 0:oc - i
jj = j + 1;
A(ii,jj) = Combination(oc,j)*Combination(oc - j,oc -i-j)*(-1)^(oc-i-j);
end
end
returnvalue =A;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -