how to calculate parameter of a function

3 visualizaciones (últimos 30 días)
Yara Hamdan
Yara Hamdan el 19 de Abr. de 2021
Editada: Yara Hamdan el 19 de Abr. de 2021
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!

Respuesta aceptada

David Hill
David Hill el 19 de Abr. de 2021
[x',-y']\(x'.*y');

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by