blsprice_test, a MATLAB program which demonstrates the use of the blsprice() function, for Black-Scholes option pricing, from the MATLAB Financial Mathematics toolbox.
The computer code made available on this web page are distributed under the GNU LGPL license.
BLSPRICE is available in a MATLAB version.
BLACK_SCHOLES, a MATLAB library which implements some simple approaches to the Black-Scholes option valuation theory, by Desmond Higham.
You can go up one level to the MATLAB source codes.