Simple question, How to find one variable from a equation.
Afficher commentaires plus anciens
r = 0.01;
S = 1015.20;
K = 285;
T = 0.25;
d1 = (log(S/K) + (r + (v^2)/2) .* T) / (v .* sqrt(T));
d2 = (log(S/K) + (r - (v^2)/2) .* T) / (v .* sqrt(T));
C = normcdf(d1) .* S - normcdf(d2) .* K .* exp(-r .* T);
All other variables are given, except "v". How do I find the "v" ? type in "solve v" doesn't work.
Anyone can help please, thank you!!
1 commentaire
Tiancong Sui
le 28 Oct 2013
Modifié(e) : Tiancong Sui
le 28 Oct 2013
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Numerical Integration and Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!