uigetfile takes ages when using appdesigner

5 visualizzazioni (ultimi 30 giorni)
Jason
Jason il 13 Feb 2020
Commentato: Jason il 20 Feb 2020
Hi, not sure why, but its taking about 20s:
path='D:\temp';
try
[file,path]=uigetfile({'*.mat','Mat Files'},'Load Data',...
path);
catch
[file,path]=uigetfile({'*.mat','Mat Files'},'Load Data',...
'C:\');
end
openpath=fullfile(path,file);
%whos('-file',openpath)
load (openpath,'wv','sp','htext','colors');

Risposte (1)

Raunak Gupta
Raunak Gupta il 18 Feb 2020
Hi,
From the profile viewer I can see that the self-time (actual time taken by the function without considering children function) is very less for uigetfile. Most of the time is taken by the FileOpenChooser.doShowDialog which essentially open the dialog box from which you may choose the file. Time taken by FileOpenChooser.doShowDialog essentially shows the time taken by the user to select the file. So, as I recreated the above situation, I found that the uigetfile is not running slow.
  6 Commenti
Jason
Jason il 20 Feb 2020
Hello, Im not able to see the same slow behaviour anymore and am not sure what I have done differently, so there's no benefit in sharing the mlapp file.
So I'm happy that this can be closed. However, I do have another issue that I have just posted regarding a time increase from GUIDE to APDESSIGNER that I would be happy to shar ethe file, please see
"Massive slow down in mouseclick behaviour in APPDESIGNER compared to GUIDE"
Thanks
Jason

Accedi per commentare.

Categorie

Scopri di più su Just for fun in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by