How to calculate the deviation or difference between two arrays of datetime?
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Belinda
 am 3 Okt. 2023
  
    
    
    
    
    Kommentiert: Siddharth Bhutiya
    
 am 1 Nov. 2023
            Hello everybody,
I try to compare two timelines of the same event, to analyse the synchronicity.
dt= between( H , I,'time' );
I really have no idea how to do it, that I arcieve a new filfe consiting only the numeral deviation of each "row" (10 in this case)
I hope I desrpibed my problem good enough, files are attached. format is Time_Relative_hmsf_-
Thanks for help :)
0 Kommentare
Akzeptierte Antwort
  Mohammad Sami
      
 am 4 Okt. 2023
        Here is something to start you off.
H = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501395/H4L.txt');
L = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501400/I4R.txt');
diff = L.Var1 - H.Var1
2 Kommentare
  Siddharth Bhutiya
    
 am 1 Nov. 2023
				Since you are only reading vector of duration values from the files and you dont really need tables, this can be simplified further by using readmatrix.
H = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501395/H4L.txt',OutputType='duration')
L = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1501400/I4R.txt',OutputType='duration')
L-H
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Tables finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


