Warning matrix is singular to working precision

3 visualizaciones (últimos 30 días)
Lokesh Rakawat
Lokesh Rakawat el 20 de Abr. de 2018
Comentada: Lokesh Rakawat el 23 de Abr. de 2018
I have rows of 2D data points. I want to get a interpolating B-spline surface(interpolating each row of data point to get interpolating B-spline curves and then interpolating curves to get B-spline surface) so I extended the data to 3D (by adding z-coordinate). But when finding the control points by solving linear system of equation (Bx = D, D:data-points, B:b-spline basis matrix,), I get warning "Matrix is singular to working precision" and almost all the control points are 0.0000 times e+06 after a few starting ones.
  2 comentarios
Walter Roberson
Walter Roberson el 20 de Abr. de 2018

Give the command

format long g

and look at the data again

Lokesh Rakawat
Lokesh Rakawat el 23 de Abr. de 2018
Thanks Walter,
Actually, I am not getting any shape of the surface due to such distant control points from data points. What I think is probably the data points are not correct as I have added the z-coordinate on my own. Can you tell me how to sort out that? Like in the attached image, I want the rows of data points (in 3D) to get interpolating surface.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Splines en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by