File Exchange 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

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Ben: Doug, Thanks for the very helpful videos! Uitables seem like a convenient way to make a customized property...
  • oleg: Allstats has no checks, no comments and could also be improved (talking about prctile implementatio). Not to...
  • Todd: Additional information and a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code can be found at...
  • Doug: @Leo, Here is the “English version” of that code. “vec = []” makes an empty variable...
  • leo: Dear Doug I have a question in your code ‘October 9th, 2009 at 13:53′ vec = []; vec = [vec val]; I...
  • Shanker Keshavdas: You sir, are a gentleman and a scholar… No really, helped me out a lot. As to what is...
  • Quan Zheng: how can I get a copy of stepspecs.m?
  • Doug: @Lucy I think this is what you seek to move a line with the mouse in MATLAB. http://blogs.math...
  • Lucy: Dear Doug, I’m a Matlab newbie and I think your videos are fantastic – without them I would be lost! A...
  • Doug: @michael, Without your code, I can not debug this. Please post the shortest version of your code that shows the...

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