How to concatenate two time arrays with the same time step?

1 回表示 (過去 30 日間)
farzad
farzad 2020 年 4 月 26 日
編集済み: Walter Roberson 2020 年 4 月 28 日
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]

採用された回答

James Tursa
James Tursa 2020 年 4 月 26 日
編集済み: James Tursa 2020 年 4 月 26 日
Ttotal = [t1,t1(end)+1+t2];
  12 件のコメント
farzad
farzad 2020 年 4 月 27 日
THANK YOU SO MUCH
farzad
farzad 2020 年 4 月 27 日
編集済み: Walter Roberson 2020 年 4 月 28 日
dear Walter, shall you please check this question of mine ? it's not being viewed https://uk.mathworks.com/matlabcentral/answers/521105-how-do-i-draw-barh-using-both-axes-values

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDirection of Arrival Estimation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by