Skip to Main Content Skip to Search
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Doug’s Pick of the Week

August 2nd, 2007

Use case: Visualizing three images

Here is a question from the front lines of technical support at the MathWorks.

This MATLAB user had three images that they wanted to view at once so they could compare them to one another. The problem is that displaying three images at once meant they would all have to be scaled down, losing precious resolution. This video shows the work flow I went through to solve the problem. This video is more for your newer MATLAB users. In this six and a half minute video you will see:

  • Explanation of the problem
  • Quick view of the solution
  • Using subplot with ‘position’ property to align axis correctly
  • Changing properties of axis to keep aspect ratio equal
  • Changing properties of axis to hide the axis from view
  • Using linkaxes so that all axes zoom at same time

As always the customer images were replaced with my own sample images.

Here are the files, and the flash video for download from the File Exchange.

4 Responses to “Use case: Visualizing three images”

  1. Michel Slivitzky replied on :

    I never realize done can do so much with Matlab in picture editing.
    Nothing beats learning by example and this video is just great.
    Is it possible to get a copy of the code to study it at leisure

    Thanks

  2. Doug replied on :

    Michel,

    I just put the video and file on the exchange for download.

    Thanks for the kind words.
    Doug

  3. Mark replied on :

    Doug,

    I just wanted to personally thank you as the customer who requested help on this subject. Your solution works flawlessly and I was very impressed. Thanks again for your help.

    -Mark

  4. Phillip replied on :

    Hi Doug,

    I was wondering if you have a basic example which shows the interaction between Matlab and Java. Thank you.

    By the way, your videos are excellent.

Leave a Reply


Doug Hull is an Application Engineer at The MathWorks. A MATLAB user since 1994, he gets paid to live, eat, and breathe MATLAB! This blog is dedicated to promoting the File Exchange by highlighting files and original video content.



  • pierre: Hi sherryl and thank you for answering me, Actually, I already tried before to use this property because I...
  • Sherryl: In Response to Post #10 by Bryan - Hi Bryan, By default the analog input object will acquire one second...
  • Sherryl: Hello Pierre, Please look at the OutOfDataMode property. http://www.mathworks .com/access/helpd...
  • Scott Hirsch: Elya - In v7.0, try aviread. This has straightforward syntax for reading a single frame - you could...
  • Scott Hirsch: Eric - That’s a nice suggestion. I often get frustrated when debugging GUIDE guis and ending up...
  • pierre: Hi all, I have the Data Acquisition Toolbox, and I’m trying for 2 weeks to send a step voltage, and...
  • Eric S: It would be great to stop the debugger from coughing somewhere inside the more “internal̶ 1;...
  • Tareq: coef1 = rand(1,3)-0.5; coef2 = rand(1,3)-0.5; lex1=roots(polyder(c oef1)) lex2=roots(polyder(c oef2)) hold all...
  • Luca Balbi: While we’re at it… Checking for a number to be zero is tricky in itself. We’re better...
  • david: perhaps some error checking is in order. After all, it is possible that our randomly generated quadratic...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.

Related Topics