How is delta from the polyval function calculated

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

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 10월 25일

0 개 추천

Rather than recreate a MATLAB function in Python, why not just call MATLAB from inside Python?

댓글 수: 1

I need to do this, because I do not have a running matlab in my production environment.
Thanks for your time.

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

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

질문:

2021년 10월 25일

댓글:

2021년 10월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by