Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Heat map generation of a floor plan image
Date: Sat, 4 Aug 2012 09:26:10 +0000 (UTC)
Organization: University of North Carolina
Lines: 17
Message-ID: <jvipri$b7s$1@newscl01ah.mathworks.com>
References: <jvi9ao$g9q$1@newscl01ah.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1344072370 11516 172.30.248.47 (4 Aug 2012 09:26:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 4 Aug 2012 09:26:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:775664

Hi Nazmul,

You can first show the floor plan. Then, you can do a reshape to your temperature map to make it a matrix that is of the same size as the floor plan. Now, you can say hold on to the floor plan figure and show the temperature using imagesc. But make sure you set the the FaceAlpha property of the temperature map. 

Here is a very crude example that can be wrong but you can rectify by looking at the documentation.

temperatureMap = reshape(M(:,3),size(floorPlan)); % You had said the third column gives the map. You need to make sure that reshape does not mess up the location info. So, the best way is to do reshape on the first two columns to see if the coordinates are set correctly.

imagesc(floorPlan)
axis image
hold on
h = imagesc(temperatureMap);
set(h,'FaceAlpha',0.3)

Something like this. You can make a search on the keywords that I pointed to above.

Best.