MATLAB: Delete zero rows from a table

deleteMATLABtable

I have a table in MatLAB. The table has two column, one is called direction, another one is call speed. There are many zeros in the speed column. I would like to delete the row that has 0 in speed. Could anyone help me with that? Thanks!

Best Answer

For a table named t:
t(~t.speed,:) = []