what if the precision on datenum is not allowing max comparison
2 ビュー (過去 30 日間)
古いコメントを表示
temp(v)= allfiles(idx);
[~, index] = max([temp.datenum]);
files = [files;temp(index)];
instead of giving me the max from two files it returns both files even though datenum is different
any ideas??
2 件のコメント
Steven Lord
2023 年 1 月 4 日
which -all allfiles
which -all files
Without knowing what allfiles or files are (I can guess based on the names, but I could be wrong) it's going to be difficult if not impossible to offer any concrete suggestions.
the cyclist
2023 年 1 月 4 日
Can you upload the data? You can use the paper clip icon in the INSERT section of the toolbar.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Time Series Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!