필터 지우기
필터 지우기

How to remove data on left hand region of the image?

조회 수: 1 (최근 30일)
Kennard Ng
Kennard Ng 2019년 2월 11일
댓글: Kennard Ng 2019년 2월 11일
[x, y, frequency] = textread('SRAS_opt.txt','%f %f %f');
A2 = reshape(x,[200,200]);
B2 = reshape(y,[200,200]);
Vb = 24*10^-6*frequency;
V2b = reshape(Vb,[200,200]);
imagesc(V2b);
Task2d.jpg
I would like to remove the data on the left hand side region so I get a new velocity image.

채택된 답변

KSSV
KSSV 2019년 2월 11일
Use pcolor. Plot the color bar......See the limits and values.......which ever values you don't want replace them with NaN or remove them.....
  댓글 수: 3
KSSV
KSSV 2019년 2월 11일
Let A be your data which is a matrix..and you want to remove values less than 1 say.
A(A<1) = NaN ;
h = pcolor(A) ;
h.EdgeColor = 'none' ;
colorbar
Kennard Ng
Kennard Ng 2019년 2월 11일
Thank you very much!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by