필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Probelem with optimization and finding parameters?

조회 수: 3 (최근 30일)
Sasi
Sasi 2012년 5월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello everyone,
I have a question. I have to functions f and g and I would like to find the parameters of function g based on the parameters of function f. For example if f and g are:
f= a*x+b;
g=c*x+d;
Then I would like to find something like:
a=c; b=d; Does anybody know what should i do? Thank you very much Regards Sasi

답변 (1개)

Sargondjani
Sargondjani 2012년 5월 9일
how to solve this depends a little bit on what your really want and what your functions look like, because in your example the solution is trival ... so can you elaborate on the problem??? (function? only 1 datapoint? estimate only 'a' and 'b' or the best fit with a,..,d??
if the function is linear and you have more datapoints (f and g?) you can run a regression. use left divide: \ or the command 'regress'
if the functions are more complicated than that, you can use 'fsolve'. which requires you to define a function, and an initial guess

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by