曲线拟合

来源:互联网 发布:mac怎么切换大小写 编辑:程序博客网 时间:2024/05/20 20:26
numFormPoints = 10;xyFormPoints = randn(numFormPoints, 2);t = 1:numFormPoints;tFine = linspace(1, numFormPoints, 1000);xyFormGrids = spline(t, xyFormPoints.', tFine);plot(xyFormGrids(1, :)', xyFormGrids(2, :)', '.g')hold on plot(xyFormPoints(:, 1),xyFormPoints(:, 2), '.r');hold off

拟合有多值的曲线:


原创粉丝点击