hi everybody,
I have a two different variables; enthleft and enthright. I want to turn NaN values to Zero but when both variables get NaN values just one of it turn to Zero. How to solve this porblem?
if any(isnan(enthleft), 'all'); enthleft = 0; elseif any(isnan(enthright), 'all'); enthright = 0; end
Best Answer