Info

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

How do i solve f(x,k)=sin(x)-kx on matlab?

조회 수: 2 (최근 30일)
Hannah
Hannah 2014년 11월 22일
마감: Matt J 2014년 11월 23일
I am struggling with solving the above eqn on matlab, can someone please give some guidance, thanks!
  댓글 수: 2
Star Strider
Star Strider 2014년 11월 22일
What do you mean by ‘solve’?
Please go into some detail as to what do you want to do with it.
John D'Errico
John D'Errico 2014년 11월 22일
"Solve" it? Solve for what? Exactly what problem are you solving for? What unknown? Do you want to solve for that expression equal to zero? Do you want to solve for x or k? Are you looking for a symbolic or numerical solution? Is this homework?

답변 (1개)

Orion
Orion 2014년 11월 22일
편집: Orion 2014년 11월 22일
what are x ? k ?
variables ? parameters ?
Anyway, see the doc of fzero
espectially this part, which seems to be what you need
myfun = @(x,c) cos(c*x); % parameterized function
c = 2; % parameter
fun = @(x) myfun(x,c); % function of x alone
x = fzero(fun,0.1)

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by