Group Abstract Group Abstract

Message Boards Message Boards

Avoid error while using FindFit?

Posted 6 years ago

Consider the following code:

FindFit[{1.293, -0.768, -0.004, 0}, {1.011, -0.688, -0.004, 0}, a x1 + b x2 + c x3 + d x4, {a, b, c, d}, {x1, x2, x3, x4}]

I am receiving this error on passing the above command FindFit::fitc: Number of coordinates (3) is not equal to the number of variables (4).

Please let me know what I am doing wrong here ? I want to get coefficient values of x1,x2,x3 and x4.

POSTED BY: HEMANT KUMAR
2 Replies
Posted 6 years ago

Crossposted here.

POSTED BY: Rohit Namjoshi
Posted 6 years ago

Take a look at the "Fit a model to data in four dimensions:" example in the Scope / Multivariate Data section of the documentation.

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard