Plane fit in 3d using least squares method

66 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Matt J
Matt J il 5 Set 2021
You can use planarFit() from this submisson:
You will find examples in the Examples tab.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by