Skip to content

Instantly share code, notes, and snippets.

@dims12
Last active January 29, 2018 08:56
Show Gist options
  • Save dims12/4458d66e2e4a2a4013ccf77b50771fe1 to your computer and use it in GitHub Desktop.
Save dims12/4458d66e2e4a2a4013ccf77b50771fe1 to your computer and use it in GitHub Desktop.
Example of CSV which is differently processed in Matlabs 2015 and 2016
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
ID;Timestamp;Duration;MainStatus;SubStatus;IsMaintainance;IsFault;IsWarning;IsActive
CODE1;2014-01-01 00:00:00.000;3;0;0;0;0;0;0
CODE2;2014-01-01 00:00:02.000;119;0;0;0;0;0;0
CODE3;2014-02-06 19:44:16.000;70;0;1;0;0;0;0
f = 'example.csv';
data = readtable(f, 'Delimiter', ';');
class(data.IsFault)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment