필터 지우기
필터 지우기

Change how numbers are visualized with imagesc?

조회 수: 3 (최근 30일)
MementoMori
MementoMori 2023년 6월 11일
댓글: Image Analyst 2023년 6월 11일
Hi, with
figure,imagesc
I visualize the scale like "scale"
but I want to visualize with "0.02, 0.015, 0.01 ..." without "x10^3"
What can I do?

답변 (1개)

Image Analyst
Image Analyst 2023년 6월 11일
Multiply your image by 1000 before passing in to imagesc. A side effect though is that the pixel values reported by mousing around over the image will also be 1000 times as big (rather than the original values) if you called impixelinfo, but maybe that will be OK. I prefer imshow to imagesc since it doesn't apply some (probably undesired) colormap by default.
scaledImage = originalImage * 1000;
imshow(scaledImage, []);
colormap('turbo');
colorbar;
impixelinfo
  댓글 수: 2
MementoMori
MementoMori 2023년 6월 11일
Multiply by 1000 doesn't solve my problem. I don't want the scale "(20, 15, 10, ...)*10^-3" but the scale "(0.02, 0.015, 0.010, ...)".
If I multiply by 1000 I will have the scale "(20, 15, 10, ...)" that it is not what I want
Image Analyst
Image Analyst 2023년 6월 11일
Make up your own custom labels. See the documentation
help colorbar properties
Set TickLabelsMode and TickLabels properties for the colorbar.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by