Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to take input image from user
Date: Wed, 9 Apr 2008 16:15:04 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 17
Message-ID: <ftiq28$lvo$1@canopus.cc.umanitoba.ca>
References: <fthoji$t6n$1@fred.mathworks.com> <fthrfe$i0e$1@fred.mathworks.com> <fti0eq$brs$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1207757704 22520 192.70.172.160 (9 Apr 2008 16:15:04 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Wed, 9 Apr 2008 16:15:04 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:462016


In article <fti0eq$brs$1@fred.mathworks.com>,
Amol Deshpande <sdamol@rediffmail.com> wrote:
>image through keyboard means, for example if we type 'c' 
>from keyboard then matlab should take 'cameraman.tif',if 
>we type 'f' then matlab should take 'football.jpg' etc; 
>and after taking the image the program should use the 
>image which we have provided to the program(like here we 
>have provided 'cameraman.tif').so what is the command or 
>function which will ask us 'which image you want to 
>process?' and then we can provide any image of our choice.

If your program knows the names of the possible images in advance,
then consider using the menu() function, or the input() function
with the 'string' option.
-- 
   "Beware of bugs in the above code; I have only proved it correct,
   not tried it."                                    -- Donald Knuth