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

14 次查看(过去 30 天)

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.

采纳的回答

MathReallyWorks
MathReallyWorks 2017-5-28

Hello isaiah,

Use this:

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

Input image:

Output:

更多回答(1 个)

Image Analyst
Image Analyst 2017-5-28
编辑:Image Analyst 2017-5-28
Use
axis on
To put on a spatial scale. Use colorbar() to show the intensity scale.

类别

Help CenterFile Exchange 中查找有关 Colorbar 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by