Case sensitivity of uigetfile

2 次查看(过去 30 天)
Omar Mian
Omar Mian 2011-12-10
回答: Alex 2013-11-22
Is it possible to make the FilterSpec in the uigetfile function case insensitive?
If I want to be able to select either *.xls or *.XLS files, currently I have to specify both the capitilised and the non-captialised verison.
e.g.
[filename, pathname] = uigetfile({'*.xls;*.XLS','Excel files (*.xls)';...
'*.*', 'All Files(*.*)'}, ...
'Pick a file');

回答(1 个)

Alex
Alex 2013-11-22
I am looking for the same thing! Having two separate options for capital and lower case is very annoying.

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by