Comment règler ce programme ?

Fermé
fakhrihunter Messages postés 5 Date d'inscription jeudi 16 mars 2017 Statut Membre Dernière intervention 18 avril 2017 - Modifié le 18 avril 2017 à 08:34
Bonjour,
je veux créer ce petit programme sur matlab SVP aider moi

#First and last date of the observations file
start_ini<-as.character(dates[1])
end_ini<-as.character(tail(dates,1))

pre_start<-substr(start_ini,0,10)
pre_end<-substr(end_ini,0,10)

#Start at 00:00:00 and finish at 23:00:00
start<-paste(pre_start,"00:00:00",sep=" ")
end<-paste(pre_end,"23:00:00",sep=" ")

#New vector of date (with no gaps)
new_vecdate<-timeSequence(from=start,to=end,by="1 hour",format="%d/%m/%Y %H:%M:%S")
nb<-length(new_vecdate)
days<-substr(as.character(new_vecdate),0,10)