Code covered by the BSD License  

Highlights from
PNM Toolbox 3.01

from PNM Toolbox 3.01 by Peter J. Acklam
The PNM Toolbox is a collection of MATLAB programs for reading and writing PPM, PGM, PBM, PNM, ...

ppmread(filename)
function [X, map] = ppmread(filename)
%PPMREAD Read image data from a PPM file.
%
%   This program is just a front-end to PNMREAD.
%   See the help entry in PNMREAD for details.
%
%   See also IMREAD, IMWRITE, IMFINFO.

%   Author:      Peter J. Acklam
%   Time-stamp:  2009-07-21 14:19:51 +02:00
%   E-mail:      pjacklam@online.no
%   URL:         http://home.online.no/~pjacklam

   error(nargchk(1, 1, nargin));

   [X, map] = pnmread(filename);

Contact us at files@mathworks.com