Doug's MATLAB Video Tutorials

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).


MathWorks

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

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