Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Kennard Ng
Kennard Ng le 11 Fév 2019
Commenté : Kennard Ng le 11 Fév 2019
[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.

Réponse acceptée

KSSV
KSSV le 11 Fév 2019
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 commentaires
KSSV
KSSV le 11 Fév 2019
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 le 11 Fév 2019
Thank you very much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Blue dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by