⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 theoprices.m

📁 Matlab codes for financial models
💻 M
字号:
function ThPrice = TheoPrices(x,CashFlows,Times,RealPrices)
F=zeros(length(RealPrices),1);
ThPrice=zeros(length(RealPrices),1);
for i=1:length(RealPrices)
   for j=1:length(Times)
      ThPrice(i) = ThPrice(i) + CashFlows(i,j) * ...
      exp(-Times(j)*(x(1) + x(2)*Times(j) + x(3)*Times(j)^2 + ...
         x(4)*Times(j)^3 + x(5)*Times(j)^4));
   end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -