Why does UIGETFILE Put the last file name at the start then the rest in order.

Hi guys, I'm using UIGETFILE to return me the names of files in a folder. The File names are ordered correctly in the folder but when the names are returned the last file name is in first cell, after this the file names continue in the correct order.
Thanks in advance,
Tim

3 Comments

Solved my problem. Little bit weird really, I am selecting multiple files by clicking and holding the shift key. The last file you click on goes in the first cell, they then run down accordingly.
@Tim: I don't experience your issue on R2012a Vista 32.
@Oleg: I am using R2010a and XP 32. But this definitely happens. I just use "sort" to put it right though, but I suppose I'm lucky that my files are labelled like that.

Sign in to comment.

 Accepted Answer

When selecting multiple files by clicking and holding the shift key, the last file you click on goes in the first cell, they then run down accordingly.

1 Comment

This behaviour is controlled by the operating system and happens in e.g. the Explorer also.

Sign in to comment.

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!