How to set datetime for every 9.9156 days?
    1 visualización (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    hanif hamden
 el 24 de Mayo de 2019
  
    
    
    
    
    Respondida: Steven Lord
    
      
 el 24 de Mayo de 2019
            I have 255 length of data. and the first row of data I have date time 1-Jan-1993 0:00:00. how to set the datetime which interval is 9.9156days from this date 1-Jan-1993 0:00:00  ? can anyone help me? below is my coding
clc;clear;close all;
A=load('Topex-SLA.txt');
L = length(A);
t= datetime(1993,1,1,0,0,0,'TimeZone','GMT+8');
t1 = t + hours(1:r)'
0 comentarios
Respuesta aceptada
  Fangjun Jiang
      
      
 el 24 de Mayo de 2019
        t2= datetime(1994,1,1,0,0,0,'TimeZone','GMT+8');
t:days(9.9156):t2
0 comentarios
Más respuestas (1)
  Steven Lord
    
      
 el 24 de Mayo de 2019
        Do you want a certain number of 9.9156 day intervals from your starting time, or do you want intervals of length 9.9156 days starting at your start time and ending on or before a desired ending time? Both cases are shown on this documentation page though in different sections.
0 comentarios
Ver también
Categorías
				Más información sobre Dates and Time en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


