0
次のコードでは、月をチェックして月の値を出力します。 助けてください?どのようにdatenumのMATLAB値の月を確認するには?
formatOuttime = 'yyyy/mm/dd HH:MM:SS';
DateString = '2002/01/01 00:00:00';
datelooping=datenum(DateString,formatOuttime);
for i=1:100
% do some stuff
% check the month of the datelooping and print only the month value
datelooping = datelooping+1;
end
ありがとうございましたdatevecは正常に動作しました。しかし、datetimeは動作していません。このエラーを出力します。 "関数 'subsindex'は、クラス 'datetime'の値に対して定義されていません。 @Suever – Alemex
感謝しました! – Alemex