/ Published in: MatLab
Load dates & times into Matlab as text files, then convert to datenum so I can do something useful with them.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
directorypath='H:\SSW_scripts\'; %load in the data %===================== %text files in format 'dd mm yyyy hh mm s' clear CR_d %convert time to datevec CR_d(:,1)=datenum(disturbancetimes(:,1),disturbancetimes(:,2),disturbancetimes(:,3),disturbancetimes(:,4),... disturbancetimes(:,5),disturbancetimes(:,6));