Plane fit in 3d using least squares method

조회 수: 37 (최근 30일)
Arkaniva Sarkar
Arkaniva Sarkar 2021년 9월 5일
댓글: Arkaniva Sarkar 2021년 9월 7일
I have a matrix n where
n = [x,y,z] =
325.8693 225.7653 332.6122
328.8458 221.9215 340.6939
334.4979 219.9996 350.0206
348.5572 223.4883 356.8571
352.5742 231.5309 362.6544
352.5742 248.8279 369.2363
358.5996 250.7498 361.6313
354.9226 256.5154 358.8776
354.5826 262.5816 352.8163
354.5826 266.6188 342.7143
350.5657 268.6042 334.6327
344.5403 267.1043 330.5918
338.906 262.2811 324.5306
330.7668 258.4373 326.551
I want to fit a plane to this set of points in 3d using least squares method. Can anyone please help me with this?

채택된 답변

Matt J
Matt J 2021년 9월 5일
You can use planarFit() from this submisson:
You will find examples in the Examples tab.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by