I have matrix A
A = [1 NaN 55 NaN 14 NaN 1 NaN 1 NaN 1 2 NaN 55 NaN 14 NaN 1 NaN 1 NaN 1 3 NaN 55 NaN 14 NaN 1 NaN 1 NaN 1 4 NaN 35 NaN 14 NaN 1 NaN 1 NaN 1];
Remove all the NaN
B = [1 55 14 1 1 1 2 55 14 1 1 1 3 55 14 1 1 1 4 35 14 1 1 1];
Best Answer