Black-Scholes Call and Implied Vol functions
call: function to calculate BS call price
call_vega: BS call vega (i.e. partial derivative of call with respect to vol)
Phi: normal cdf
PhiPrime: normal pdf
impvol: finds vol given a call price
demo: a script demonstrating the impvol function
d1 and d2 are auxiliary functions
NOTE: the impvol function is *hugely* faster than the financial toolbox's function blsimpv (950 call prices, other parameters fixed, impvol is ~600x faster).
Cite As
Hemingway (2024). Black-Scholes Call and Implied Vol functions (https://www.mathworks.com/matlabcentral/fileexchange/28682-black-scholes-call-and-implied-vol-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.