how to execute a custom matlab function in excel video -凯发k8网页登录
execute a custom matlab® function using data from microsoft® excel® and display the results in excel. the reason is to extend excel with the computational and visualization capabilities of matlab. the custom matlab function creates random stock paths using monte carlo simulation. it simulates random stock paths using geometrical brownian motion.
in this video i am going to show you how to execute a custom matlab function using data from ms excel and display the results in excel. the reason is to extend excel with the computational and visualization capabilities of matlab.
the custom matlab function creates random stock paths using monte carlo simulation.
monte carlo simulation of a stochastic process is a procedure for sampling random outcomes for the process.
the custom function that i created, paths, takes as inputs the gbm parameters and generates the stock paths. in this example we will generate 65,000 eurostoxx paths for 21-time steps and visualize 500 paths starting at s0, which is the last available price for the index in question.
- first, we bring the excel data into matlab.
- next, we execute the custom function in matlab paths.
- finally, we bring the results back to excel. the data in the worksheet updates.
we can see the 65,000 paths generated for 21-time steps.
to recap, using spreadsheet link, you can import a function already created in matlab and benefit from the computational speed and visualization capabilities of matlab directly from excel.
to find out more about spreadsheet link applications, please visit the spreadsheet link product page where you can read the documentations, watch additional videos, and find examples. thank you for watching.
featured product
spreadsheet link
up next:
related videos:
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 mathworks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- (español)
- (english)
- (english)
欧洲
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
亚太
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)