Use the bisection method to find solutions in Matlab?

前端 未结 1 1789
再見小時候
再見小時候 2021-01-29 04:16

I am trying to solve the following question:

Use the bisection method to find solutions accurate to within 10^−4 on the interval [−5, 5]

相关标签:
1条回答
  • 2021-01-29 04:55

    to define an equation that can be evaluated by feval, you need to define as a function.

    Try defining fn as fn=@(x)(x^5-10x^3-4). This way you can use feval(fn,3).

    0 讨论(0)
提交回复
热议问题