what if the precision on datenum is not allowing max comparison

조회 수: 1 (최근 30일)
Ihaveaquest
Ihaveaquest 2023년 1월 4일
댓글: the cyclist 2023년 1월 4일
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
Steven Lord 2023년 1월 4일
which -all allfiles
'allfiles' not found.
which -all files
'files' not found.
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
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 CenterFile Exchange에서 Variables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by