Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How do i solve f(x,k)=sin(x)-kx on matlab?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am struggling with solving the above eqn on matlab, can someone please give some guidance, thanks!
2 comentarios
Star Strider
el 22 de Nov. de 2014
What do you mean by ‘solve’?
Please go into some detail as to what do you want to do with it.
John D'Errico
el 22 de Nov. de 2014
"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?
Respuestas (1)
Orion
el 22 de Nov. de 2014
Editada: Orion
el 22 de Nov. de 2014
what are x ? k ?
variables ? parameters ?
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)
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!