Fitting a specific linear function to data

조회 수: 1(최근 30일)
Samuele Bolotta
Samuele Bolotta 2021년 6월 12일
답변: Tarunbir Gambhir 2021년 6월 15일
I have some data to which I want to fit the following function:
c1 * X + c2 * Y
I know the values for X and Y, can you give me a hint as to how I should proceed?
  댓글 수: 2
Samuele Bolotta
Samuele Bolotta 2021년 6월 12일
Thanks for the hint! As ou can see in the screenshot, I think the only problem is I'd need to specify the function as f(X,Y), but for some reason I can only specifcy it as f(X):

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

답변(1개)

Tarunbir Gambhir
Tarunbir Gambhir 2021년 6월 15일
You can launch the Curve Fitting Tool with 'cftool( x, y, z )' for your case. This will create a surface fit to x and y inputs and z output.

Community Treasure Hunt

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

Start Hunting!

Translated by