how to remove values below 0.1?
Afficher commentaires plus anciens
after doing a series of calculations I obtained a prob(i)=1x27331 double matrix characterized by values ranging from 0 to about 0.4.
How can I remove all points with values less than 0.1 and change them to NaN?
I need these values below 0.1 to become worthless so that when plotting them they are not marked.
i tried with :
old = lt(prob(i),0.1);
new = NaN;
prob(i) = changem(prob(i),new,old);
...but it doesn't work.
Can anyone help me?
thanksss
Réponse acceptée
Plus de réponses (1)
a = 0.4*rand(100,1); % generate some data
a(a<0.1) = nan
2 commentaires
ELISABETTA BILLOTTA
le 23 Juin 2022
Chunru
le 24 Juin 2022
Are you sure you use the same code?
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!