Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matlab
Date: Fri, 14 Nov 2008 10:23:19 -0500
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <gfk557$a2a$1@fred.mathworks.com>
References: <gfjgb2$8q3$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1226676199 10314 144.212.105.187 (14 Nov 2008 15:23:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 14 Nov 2008 15:23:19 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:500846



"Asha Murugan" <ashamurugan96@yahoo.co.in> wrote in message 
news:gfjgb2$8q3$1@fred.mathworks.com...
> What program is needed to open a program file with .pgm extension?

I'm going to go out on a limb and guess that your .pgm file is a Portable 
Graymap Graphic file rather than one of the other file types listed on this 
page:

http://filext.com/file-extension/pgm

If so, look at IMREAD:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/imread.html

If not, you'll probably need to use the lower-level file I/O functions (see 
HELP IOFUN) to build your own function to read in your .pgm file.

-- 
Steve Lord
slord@mathworks.com