gui takes prettty much time for launching?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
romasha
el 2 de Feb. de 2014
Editada: Walter Roberson
el 2 de Feb. de 2014
hi, In my gui i have a images slideshow and some text its working right but the problem is gui takes pretty much time for launching and when i comment images slideshow code it get start quickly... now how to resolve this issue?
4 comentarios
Image Analyst
el 2 de Feb. de 2014
If I told you MY program was slow, can you tell me why my program is slow if I don't show you the code? You need to see the code. Did you use the MATLAB compiler to turn your program into a standalone executable?
Respuesta aceptada
Shivaputra Narke
el 2 de Feb. de 2014
You can use following code to run slideshow because it will run in background.
function slideshow
global indx
indx=1;
showTimer=timer('timerFcn',@timefcn);
set(showTimer,'ExecutionMode','fixedRate');
start(showTimer)
function timefcn(varargin)
global indx
imgNameList= char('1.jpg','2.jpg','3.jpg');
a=imread(imgNameList(indx,:));
indx=indx+1;
if indx>10
indx=1;
end
imshow(a);
drawnow;
0 comentarios
Más respuestas (1)
Shivaputra Narke
el 2 de Feb. de 2014
As your code is not present here its difficult to say anything. But,if gui is taking time in launching that means you have written a bunch of code in its opening function that takes time. I am not sure but this may be one of the reason.
2 comentarios
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!