MATLAB Answers

How would I go about adding these scales to my figure?

2 views (last 30 days)

I have the first image, but need to apply the scale that is visible in the next image. How might I go about this? Could you please just point me in the right direction? Thank You.

  0 Comments

Sign in to comment.

Accepted Answer

MathReallyWorks
MathReallyWorks on 28 May 2017

Hello isaiah,

Use this:

 I=imread('Amplitude2.0.jpg');
imagesc(I);
colormap(gray(256));
colorbar;

Input image:

Output:

  0 Comments

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 28 May 2017
Edited: Image Analyst on 28 May 2017
Use
axis on
To put on a spatial scale. Use colorbar() to show the intensity scale.

  0 Comments

Sign in to comment.

Sign in to answer this question.