Borrar filtros
Borrar filtros

uipickfiles Error with R2015b

6 visualizaciones (últimos 30 días)
Mike Denny
Mike Denny el 3 de Jul. de 2017
Editada: Mike Denny el 4 de Jul. de 2017
Hi, I just upgraded from R2013a to R2015b. One of the key components in the data analysis script I have is selecting the file I want first. I have uipickfiles.m outputting the structure data type. The GUI part seems to run fine, but the issue is when I execute it in R2015b it returns a structure of all the files in my current folder, and then in the last position, the file I actually picked (which is from a completely different directory). I can't tell why it's including everything from the 'current folder' directory.
As an aside, you can get around this by having the output set to 'Char,' and then each row is a different file name, and only includes the ones you select. But nonetheless, I don't like it when things stop working after a revision upgrade.

Respuesta aceptada

Mike Denny
Mike Denny el 4 de Jul. de 2017
Editada: Mike Denny el 4 de Jul. de 2017
I was able to find a fix the author mentioned in the ratings section of the link Jan provided. The reason for the failure and its fix is as follows:
"They changed the behavior of dir again (slightly). You can fix the problem just by changing one line. Change the line (on or near line 186)
dir_picks = dir(' '); % Create empty directory structure.
to be
dir_picks = repmat(dir(char(127)),0,1); % Create empty directory structure.
and that will work forever (I hope!)."
I can confirm that this fix worked for me.

Más respuestas (1)

Jan
Jan el 3 de Jul. de 2017
What is "uipickfiles"? This function does not belong to Matlab's toolboxes. Do you mean FEX: uigetfile-on-steroids?
If there is a specific problem with a FEX function, did you contact the author already? Did you try to debug the code? Please note that we cannot do this for you, because you did not explain exactly, what you are doing.
I don't like it when things stop working after a revision upgrade.
Well, who does. Upgrades are known to be a source of incompatibilities. You cannot expect a third party tool to work with all different releases. uipickfiles has not been updated since 2012.

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by