MATLAB Answers

Tim Mottram
0

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

Asked by Tim Mottram
on 17 Sep 2012

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.

Tags

Products

No products are associated with this question.

1 Answer

Answer by Tim Mottram
on 17 Sep 2012
 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

Jan Simon
on 19 Sep 2012

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


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!