Path: news.mathworks.com!newsfeed-00.mathworks.com!news.mv.net!news.glorb.com!news2.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe21.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: matrix conversion
References: <hsouqr$qoj$1@fred.mathworks.com> <hsp7po$pkg$1@fred.mathworks.com> <hsp96p$53q$1@fred.mathworks.com> <YDWHn.12979$TL5.6183@newsfe24.iad> <hspf9o$ark$1@fred.mathworks.com>
In-Reply-To: <hspf9o$ark$1@fred.mathworks.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 13
Message-ID: <ruXHn.8090$HG1.703@newsfe21.iad>
NNTP-Posting-Host: 24.79.143.47
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe21.iad 1274037271 24.79.143.47 (Sun, 16 May 2010 19:14:31 UTC)
NNTP-Posting-Date: Sun, 16 May 2010 19:14:31 UTC
Date: Sun, 16 May 2010 14:14:30 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:636317

Z A wrote:
> Hello walter,
> 
> Thank you kindly for your reply. I am invoking the following 
> http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/ 
> 
> from steve's blog, and following his method I get that x 9 matrix, which 
> is confusing me alot.
> Tha x 9 image is the green image you see in his blog.

S1 = size(E,1);
S2 = size(E,2);
green = cat(3, zeros(S1,S2), ones(S1,S2), zeros(S1,S2));