运行提示:Output argument "implied_volstility" (and maybe others) not assigned during call to "solveForVolViaBisection".
从程序看,输出implied_volstility在程序结束时,没有赋值。程序中虽有
if(abs(delta) < tolerance)
implied_volstility=mid;
step=i;
break;
% method has converged sufficiently; we are done
end
但条件没有满足,没执行。