Hi I have two arrays,
A = [23 Nan 45 Nan Nan 67 50 100 110] and B = [24 49 70 71 72 90 100 120 109]
NaN denotes some gap. I want to place the element of matrix B in the same location in A where it is NaN. For example, in array A 2nd position there is a gap, I want to put value 49 from matrix B into that position in array A. So the resulting A matrix becomes
A = [23 49 45 71 72 67 50 100 110]
Let me know how I can code it in MATLAB. Thanks,
x) in a numeric array in Matlab.