Excluding NaNs in resize
Afficher commentaires plus anciens
Hi
I want to resize 2 arrays, A and B, to make them the same size.
BUT, array B has a lot of NaN value.
So, I only want to resize A to fit the numerical data in B, excluding the NaN values.
% The CODE to resize
C = imresize(A, size(B));
% How can I modify the size(B) part to exclude the NaN during the resize process?
Réponses (1)
KSSV
le 22 Avr 2020
0 votes
You can fill the NaN's using fillmissing. And then use resize the way you want.
You can use interp2 to get them to the same size.
Catégories
En savoir plus sur Image Arithmetic 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!