Please help me to find the equations of the following data.

조회 수: 2 (최근 30일)
Sajal  Khandelwal
Sajal Khandelwal 2017년 3월 26일
댓글: Walter Roberson 2017년 3월 26일
x=[0 10 20 30 40 50 60];
y1=[.30 .50 1.40 1.60 2.60 2.90 3.35];
y2=[.68 .94 1.53 1.9 2.78 3.0 3.5];
y3=[1.029 1.34 2.36 2.81 3.7 3.9 4.7];
3 different equations required.

채택된 답변

Walter Roberson
Walter Roberson 2017년 3월 26일
d = randperm(6,3);
c1 = polyfit(x, y1, d(1));
c2 = polyfit(x, y2, d(2));
c3 = polyfit(x, y3, d(3));
  댓글 수: 2
Sajal  Khandelwal
Sajal Khandelwal 2017년 3월 26일
편집: Sajal Khandelwal 2017년 3월 26일
I am thankful for your answer but not getting correct values for y2

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by