Code covered by the BSD License
-
FindBezierControlPointsND(p,v...
INPUT
-
Q=bezierInterp(P0,P1,P2,P3,va...
Bezier interpolation for given four control points.
-
[MatGlobalInterp]=BezierInter...
% Cubic Bezier interpolation of control points based on segmentation values of
-
[MatOut]=FindGivenRangeMatche...
i stands for index, v stands for value
-
[p0mat,p1mat,p2mat,p3mat,fbi,...
Approximation of data by Cubic Bezier Curves.
-
[p0mat,p1mat,p2mat,p3mat,tout...
% Find Cubic Bezier Control Points of given segments
-
[sqDistAry,indexAryGlobal]=Ma...
There are two matrices mat1 & mat2
-
[squaredmax,rowIndex]=MaxSqDi...
% find max. square distance and corresponding row index
-
ans=isvec(x)
return 1 if input argument is vecotor else return 0
-
plot2d_bz_org_intrp_cp(Mat,Ma...
% plot original data, interpolated data, control points of bezier curve
-
vout=getcolvector(vin)
% if vin is row vector change it to column vector then return it.
-
main.m
-
View all files
from
cubic Bezier least square fitting
by Dr. Murtaza Khan
Approximation of data using cubic Bezier curve least square fitting
|
| ans=isvec(x)
|
% return 1 if input argument is vecotor else return 0
function ans=isvec(x)
ans=0;
d=size(x);
if(length(d)>2) % not vector
return
end
[r c]=size(x);
if (r>1 & c>1) % not vector
return
end
ans=1; % vector
% % % --------------------------------
% % % Author: Dr. Murtaza Khan
% % % Email : drkhanmurtaza@gmail.com
% % % --------------------------------
|
|
Contact us at files@mathworks.com