How is delta from the polyval function calculated
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Johannes Bretscher
el 25 de Oct. de 2021
Comentada: Johannes Bretscher
el 26 de Oct. de 2021
Hello,
I have to translate a script from matlab to python. Most works well so far, I only have an issue with the polyfit/polyval functions.
polyval in Matlab returns a delta, the equivalent python function doesn't. I have from the python polyfit function a structure that contains "Residuals is sum of squared residuals of the least-squares fit, the effective rank of the scaled Vandermonde coefficient matrix, its singular values, and the specified value of rcond." Or alternatively, a covariance matrix.
Can you give me some pointers how I can get the delta values from those structures?
Greetings,
Johannnes
0 comentarios
Respuestas (1)
Cris LaPierre
el 25 de Oct. de 2021
Rather than recreate a MATLAB function in Python, why not just call MATLAB from inside Python?
Ver también
Categorías
Más información sobre Call Python from MATLAB 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!