Return to Snippet

Revision: 66630
at June 11, 2014 02:17 by Giauzar


Initial Code
clear

directorypath='H:\SSW_scripts\';

%load in the data
%=====================
%text files in format 'dd mm yyyy hh mm s'
disturbancetimes=load([directorypath,'CR_disturbance_time3.txt']);


clear CR_d
%convert time to datevec
CR_d(:,1)=datenum(disturbancetimes(:,1),disturbancetimes(:,2),disturbancetimes(:,3),disturbancetimes(:,4),...
    disturbancetimes(:,5),disturbancetimes(:,6));

Initial URL

                                

Initial Description
Load dates & times into Matlab as text files, then convert to datenum so I can do something useful with them.

Initial Title
Loading dates & times into Matlab

Initial Tags

                                

Initial Language
MatLab