How to concatenate two time arrays with the same time step?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
farzad
am 26 Apr. 2020
Bearbeitet: Walter Roberson
am 28 Apr. 2020
Hi All
I have two time series both starting from 0 and show some duration,
t1 =[0,1,2,3,4]
t2= [0,1,2,3]
what I need to have is
Ttotal= [0,1,2,3,4,5,6,7,8]
this is what I did and is not working well :
Ttot= [];
resol=t1(2)-t1(1)
Ttot=[Ttot,t2+Ttot(end)+resol]
0 Kommentare
Akzeptierte Antwort
James Tursa
am 26 Apr. 2020
Bearbeitet: James Tursa
am 26 Apr. 2020
Ttotal = [t1,t1(end)+1+t2];
12 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!