Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Using Array data to read in Images
Date: Sun, 19 Apr 2009 19:13:01 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 17
Message-ID: <gsft3t$bg2$1@fred.mathworks.com>
References: <gsfnr6$5e9$1@fred.mathworks.com> <gsfr0d$qke$1@fred.mathworks.com> <gsfsh6$4lb$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240168381 11778 172.30.248.37 (19 Apr 2009 19:13:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 19 Apr 2009 19:13:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869871
Xref: news.mathworks.com comp.soft-sys.matlab:533895


"Alexander " <airkemp@gmail.com> wrote in message <gsfsh6$4lb$1@fred.mathworks.com>...
> 
> Hi Jiro, Thanks for getting back.
> 
> Applogies, IMAGESDATA is an array of structures, each structure within the array has 2 fields, path and name so IMAGESDATA(1,1) has a path field and a name field, IMAGESDATA(1,2) has a different path field and a name field so i need a way of access each individual field if possible.
> 
> any ideas?
> 
> Thanks
> 
> Alex

Okay, so you should be able to do what I mentioned in the previous post:

imread(fullfile(IMAGESDATA(1,1).path, IMAGESDATA(1,1).name))

jiro