fitPiecewiseLinear(​t, z, tGuess)

버전 1.0.0.0 (3.11 KB) 작성자: Matthew Kelly
Computes a best-fit linear spline with arbitrary grid spacing
다운로드 수: 193
업데이트 날짜: 2017/3/7

라이선스 보기

% [tGrid, zGrid] = fitThreeLines(t, z, tMidGuess)
%
% This function fits a piecewise linear function to a data set. The number
% of knot points is fixed, but the optimization computes the optimal grid
% spacing and the value at each knot point.
%
% INPUTS:
% t = [1,n] = time stamp
% z = [1,n] = data value
% tGuess = [1,k] = guess at the knot times. Mapped to [t(1), t(end)]
%
% OUTPUTS:
% tGrud = [1, k] = knot times for best-fit linear spline
% zGriz = [1, k] = data values for best-fit linear spline
% objVal = scalar = fitting error for the best-fit solution
% exitFlag = FMINCON exit flag for data fitting
%

인용 양식

Matthew Kelly (2025). fitPiecewiseLinear(t, z, tGuess) (https://kr.mathworks.com/matlabcentral/fileexchange/61915-fitpiecewiselinear-t-z-tguess), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2015b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Spline Construction에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0