datetime型の配列を宣言する方法
이전 댓글 표시
非常に初歩的な質問ですみません、 datetime型の配列はどのように宣言するのでしょうか?
for n=1:5
dt(n) = datetime('now'); % 「事前割り当てを検討してください」と警告が出る
end
例えば上記のdtは、datetime型5個分の領域を事前に宣言したいのですが、 zerosやcellでの宣言はエラーになります。
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 日付と時刻에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!