MATLAB: Removing empty cell in array

cell arrays

Hello I have the following data
Mat=
[1] 'GFRP' [0] [0]
[2] 'GFRP' [0] [0]
[3] 'GFRP' [0] [0]
[4] 'GFRP' [0] [0]
[5] 'GFRP' [0] [0]
[] [] [] []
[] [] [] []
[] [] [] []
[] [] [] []
[] [] [] []
Finally I want
[1] 'GFRP' [0] [0]
[2] 'GFRP' [0] [0]
[3] 'GFRP' [0] [0]
[4] 'GFRP' [0] [0]
[5] 'GFRP' [0] [0]
Can some body help me.

Best Answer

Probably there is an easier way..
Mat=Mat(~cellfun('isempty',Mat));
Mat=reshape(Mat,[],4)