non linear regression of a 3D line

조회 수: 3 (최근 30일)
Edward
Edward 2011년 11월 19일
I have a 3D line On which I need to do a non-linear regression. The shape will range from a straight line going from (0,0,0) to (1,1,1) to a line that connects (0,0,0) and (1,1,1) by tracing the x, y and z axes.
  댓글 수: 1
Image Analyst
Image Analyst 2011년 11월 20일
Can the "shapes" be something other than a series of connected line segments? Like some arbitrarily curvy path? If so, why do you call the "shapes" a "3D line"?

댓글을 달려면 로그인하십시오.

답변 (1개)

Michael
Michael 2011년 11월 20일
You need a model to fit to the data, if you can come up with one (for example, f(x,y,z; param1, param2 ...) = 0), and have a suitable definition of what a residual is in three dimensions (eg. the nearest distance of the curve from the data point (xi,yi,zi)), you can write a function which returns these residuals and pass it to lsqnonlin which will then minimise it.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by