How do I append a timestamp in a loop?

2 ビュー (過去 30 日間)
farzad
farzad 2020 年 5 月 6 日
コメント済み: farzad 2020 年 5 月 7 日
Hi All
trying the following code, I noticed that the output has not appended the t array for m times but only for two times. one the original and once appended. How should I
modify it in a way that the array t, is appended m times ?
resol is the time stamp resolution
for n=1:size(m)
if n==1
Ttot=t.';
else
Ttot= [Ttot,t.'+Ttot(end)+resol];
end
end
  2 件のコメント
farzad
farzad 2020 年 5 月 7 日
thank you very much ! that was right !

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by