title: Overlay semi transparent heatmap to image using GUIDE
body: <p>I am trying to create a heatmap using the surf command and then overlaying it over an image. I tried resizing the picture and 'converting' cm to pixels so that the image and the heatmap will have the same units ( I multiplied by 96 and divided by 2.56 the values in cm) . But when i execute my code, the heatmap appears small in a corner and the image takes the whole area. Could you please help me improve my code so that i can overlay heatmap and image?( S is my matrix for creating the heatmap)</p>
  
  <p><a href="https://i.stack.imgur.com/wjihC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wjihC.jpg" alt=""></a></p>
  
  <p>Thank you in advance :)
  My code is:</p>
  
  <pre><code>          `axes=handles.body;
            xlim([0 (L.*96)/2.56]); %Length
            ylim([0 (W.*96)/2.56]); %Width
            img=imread('thigh1.jpg');
            img=imresize(img, [(L.*96)/2.56 (W.*96)/2.56]);
            I=image(img); 
            hold (handles.body,'on');
            s=(S.*96)/2.56;
         surf(s,'FaceAlpha','interp','AlphaDataMapping','scaled','AlphaData',gradient(s),'FaceColor','interp');
              view(0,90);  
              hold (handles.body,'off');  
              I.AlphaData=0.5;`
  </code></pre>