BLSPRICE, MATLAB programs which demonstrate 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.