필터 지우기
필터 지우기

How to get equation of polynomial from polyfit?

조회 수: 67 (최근 30일)
Deepansh Bhatia
Deepansh Bhatia 2018년 4월 15일
댓글: Deepansh Bhatia 2018년 4월 16일
As the title says, I need to display the equation of a fitted line (not necessarily on the axes). I have the coefficients of the polynomial thanks to polyfit; is there a sophisticated way to construct an equation from those coefficients? Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 15일
  댓글 수: 3
Walter Roberson
Walter Roberson 2018년 4월 15일
Yes, it would be a symbolic expression. You could disp() it, or pretty() it.
Deepansh Bhatia
Deepansh Bhatia 2018년 4월 16일
Works, thanks a lot!

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by