fsolve does not give me the desirable results
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone! I need your help because im facing a problem with the comand fsolve.
I have created a fuction code for pcall that gives me a good result. The problem is that when i run the following code, matlab gives me as a result for sigma_implied the initial guess 0.015. What is the problem or my mistake here? Thank you in advance!!!
K=65;
pcall=BS_eucall(S0,K,rf,sigma,T)
f=@(sigma) BS_eucall(70,65,0,sigma,21/250)
sigma_implied=fsolve(f,0.015)
pcallK1=pcall
sigma_impliedK1=sigma_implied
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!