Hi,
I have the code below and when I try to run it, I get the error message ()-indexing must appear last in an index expression
V= zeros(size(data17,1),1);Kappa=1.15;Theta=0.04;Sigma=0.39;Rho=-0.64;Tau=30/360;V=(exp(Kappa*Tau).*((data17(:,8)/100)^2)*Kappa^2*Tau+Theta(exp(Kappa*Tau)(1-(Kappa*Tau))-1))/((exp(Kappa*Tau)-1)*Kappa)
doe anybody have an idea what is missing or what I am doing wrong?
Best Answer