how to calculate parameter of a function

2 views (last 30 days)
Hello,
I'm a bignner on matlab, so I'm finding it hard to find the parameters a and b of the function y=(a*x)/(b+x), where the values of y and x are given in row vector.
x=[1 2 3 4 5 6 7]
y=[2.5 7 38 55 61 112 85]
Thank you!

Accepted Answer

David Hill
David Hill on 19 Apr 2021
[x',-y']\(x'.*y');

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!