estimate the parameters of an equation

조회 수: 2 (최근 30일)
Nikolas Spiliopoulos
Nikolas Spiliopoulos 2017년 3월 20일
답변: Steven Lord 2017년 3월 20일
Hi there,
I have a question:
I have an equation like this: 45=a*5^b;
is there any way to estimate a and b only from this equation?
thanks
  댓글 수: 1
Adam
Adam 2017년 3월 20일
At a glance, without putting much thought into it I'd imagine there are an infinite number of solutions unless you are restricting yourself to integers only.

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2017년 3월 20일
No.
You are estimating 2 parameters with 1 (x,y) data pair. There is no unique solution.

추가 답변 (1개)

Steven Lord
Steven Lord 2017년 3월 20일
Borrowing a problem from Cleve: "I'm thinking of two numbers. Their average is 3. What are the numbers?" I just wrote down my answer; I would be very surprised if you gave the same answer I wrote down.
Like Cleve's question, your question has infinitely many solutions. But if you want the solution for a in terms of b:
syms a b
f = 45 == a*5^b;
asol = solve(f, a)
check = isAlways(subs(f, a, asol))

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by