How can I get rid of these problems fullscreen, browser from a file and efficiency
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Atacan Tosun
el 11 de Dic. de 2016
Editada: Image Analyst
el 17 de Dic. de 2016
Hi;
I am designing slideshow interface with guide. But I have some problems ;
- 1) How to make fullscreen guide ( I've tried Yair's metod and it did not work ) and ( set(gcf, 'units','norm','Outerposition',[0 0 1 1]) as well.
- 2) For the slideshow, I have to select a file which contains images. But I can open just specific file that I declared (***** myFolder = 'C:\Users\Atacan\2015-09-27'; ****** line 122). I need to access other files. I could not find way to do this.
- 3) When I run this code can not detect my commands(bush and toggle buttons) immediately. Is there any advice to make it more efficient or better way to this.( I have i7 processor and 16 gb ram)
If you find any problem please let me know.
Notes about the code;
If there is no image or end of the slideshow screen is become black. Black.jpg for this reason.
If the show end, time will be 0:0:0.
Fullscreen problem

0 comentarios
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 11 de Dic. de 2016
1. I use Yair's maximize figure function, attached, and it works well. What operating system are you using?
2. Use this code to let the user browse and select a file:
% Have user browse for a file, from a specified "starting folder."
% For convenience in browsing, set a starting folder from which to browse.
startingFolder = 'C:\Program Files\MATLAB';
if ~exist(startingFolder, 'dir')
% If that folder doesn't exist, just start in the current folder.
startingFolder = pwd;
end
% Get the name of the file that the user wants to use.
defaultFileName = fullfile(startingFolder, '*.*');
[baseFileName, folder] = uigetfile(defaultFileName, 'Select a file');
if baseFileName == 0
% User clicked the Cancel button.
return;
end
fullFileName = fullfile(folder, baseFileName)
3. I don't know exactly what "detect my commands" means. Do you mean that the GUI is not repainted/refreshed/updated immediately? If so, issue the "drawnow" command to force it to update immediately. Otherwise, maybe step through with the debugger. Or else explain what "detect my commands" means.
6 comentarios
Image Analyst
el 11 de Dic. de 2016
OK, but you're just reading a bunch of images from disk and repeatedly overwriting a variable imageArray. You don't even display it or analyze it or anything. What's the point of that? The variable imageArray will contain only the very last file you read.
Atacan Tosun
el 16 de Dic. de 2016
1 comentario
Image Analyst
el 17 de Dic. de 2016
Editada: Image Analyst
el 17 de Dic. de 2016
I don't know why Yair's method (attached) is not working for you. It should. Can you say why? It works for me and most everyone else.
Your method makes the GUI as large as the screen, but it's not truly maximized, and I often find it's not so well aligned on the screen.
Ver también
Categorías
Más información sobre Startup and Shutdown 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!