Simple question, How to find one variable from a equation.

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 件のコメント

Tiancong Sui
Tiancong Sui 2013 年 10 月 28 日
編集済み: Tiancong Sui 2013 年 10 月 28 日
C = 732.1

サインインしてコメントする。

 採用された回答

Youssef  Khmou
Youssef Khmou 2013 年 10 月 28 日

0 投票

hi,are all the variables defined, because d1 d2 are missing , if you find d1 or d2 then v can be found by two ways :
POL=[T -(sqrt(T)*d1-log(S/K)*sqrt(T)) r];
v =roots(POL)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

質問済み:

2013 年 10 月 28 日

回答済み:

2013 年 10 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by