matlab give me error when i use fzero to calculate zero of function

1 次查看(过去 30 天)
fzero of function
fun = @sin; % function
x0 = 3; % initial point
x = fzero(fun,x0)
  5 个评论
Ameer Hamza
Ameer Hamza 2020-3-14
As John expected, you have placed a script name fzero in MATLAB's path ?‍♂️. Change the name of script C:\Users\raffo\Documents\MATLAB\fzero.m to something else.

请先登录,再进行评论。

采纳的回答

madhan ravi
madhan ravi 2020-3-14
Just go to the file location and rename the file as myFzero.m for example.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Historical Contests 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by