what if the precision on datenum is not allowing max comparison

1 Ansicht (letzte 30 Tage)
Ihaveaquest
Ihaveaquest am 4 Jan. 2023
Kommentiert: the cyclist am 4 Jan. 2023
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 Kommentare
Steven Lord
Steven Lord am 4 Jan. 2023
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 am 4 Jan. 2023
Can you upload the data? You can use the paper clip icon in the INSERT section of the toolbar.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Variables finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by