assign value and plot outside the loop
1 view (last 30 days)
function [call_value]=different_k(S, r, sigma, t, steps)
call_value(i-74,1) =european_call_binomial(S, i, r, sigma, t, steps);
I 'm trying to assign the value to call_value. However, the result says call_value has not been defined. Did I made a in call_value(i-74,1)? how should I fix this ?