フィルターのクリア

Repeated measurements of values in a script with repeated trials

1 回表示 (過去 30 日間)
Jasper Voeckel
Jasper Voeckel 2022 年 8 月 17 日
回答済み: Jan 2022 年 8 月 17 日
I have a script which repeats itsself for 24 trials. With every start of a trial I set a timestamp with the matlab code "st = datestr(now,'YYYY/mm/dd HH:MM:SS:FFF' ". I would like to have an output of 24 timesptamps, however the scripts overwrites the value everytime it starts from the beginning. Therefor I´m only getting the value of the begin of the last trial. Does someone have an idea, how to ge the start time of every 24 trials?

採用された回答

Jan
Jan 2022 年 8 月 17 日
Use a loop:
st = cell(1, 24);
for k = 1:24
st{k} = datestr(now,'YYYY/mm/dd HH:MM:SS:FFF');
...
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by