I have 10×4 array with strings say
D={'Run' '' 'play' ''; '' 'go' '' 'sit' ; 'Run' '' 'play' ''; '' 'go' '' 'sit'; '' 'down' '' 'play'; '' 'go' '' 'sit'}
I want to remove consecutive elements in each column such that i get result as
res={'Run' '' 'play' ''; '' 'go' '' 'sit' ; '' '' '' ''; '' '' '' ''; '' 'down' '' 'play'; '' 'go' '' 'sit'}
I tried using for loop and deleting ,the thing is that all elements with same names get deleted.
Kindly help
Best Answer