how to calculate parameter of a function

3 ビュー (過去 30 日間)
Yara Hamdan
Yara Hamdan 2021 年 4 月 19 日
編集済み: Yara Hamdan 2021 年 4 月 19 日
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!

採用された回答

David Hill
David Hill 2021 年 4 月 19 日
[x',-y']\(x'.*y');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by