I've tried to use the following to replace the NaN values, which worked - but trying to use the diff() function in a timetable does not.
fillmissing(C,"constant",0);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!