MATLAB: Replace [ ] in an array with 0’s

cell arrayscellfuntable

talks about replace [] with 0's for one column. But suppose I have a table with many columns and I want to run this operation for multiple colmns. Is there any way simpler than writing another loop?

Best Answer

tables use functions like ismissing() and fillmissing():
newTable = fillmissing(badTable, 'constant', 0)