Matlab has different functions to load files etc....,
At the moment i am doing some reasearch for a PhD and i need to load a directory with a lot of images about 6000.
Until now i always loaded this directory like this
MapPath = 'E:\measuremnts\ref plane\Meting 1';
If this is used on a different computer you need to change the path manually what is very user friendly.
Is there a way to browse to the path like in an open window from windows; the problem is not loading a filename as variable but an entire path.
Already tried the functions
path
path('newpath')
userpath
userpath('newpath')
But i rlly want a popup open window from windows, I haven't tried a activeX control yet.
doc uigetfile
-> i know this command used it before it is to open a single file but i need the pathstring
like my mapname is "pictures"
I press my button select directory
the the UI opens for browsing
the i only select the map with 6000 pics in it.
so i get
x="pathstring"
Hans Van de Vijver wrote:
>
> doc uigetfile
> -> i know this command used it before it is to open a single file but
> i need the pathstring
Look at optional return value...
If that doesn't suit (I can't decipher _exactly_ what it is you are
asking for owing to language; obviously English isn't your primary so
that's not criticism, only explanation) at least my version of ML
doesn't have a builtin visual directory dialog.
I've not tried that in ML; I tend to not build extensive gui's using ML;
just not my way of using it so can't provide much additional guidance
there. I tend to use the OS commands instead which may not be what
you're wanting.
"Hans Van de Vijver" <hans.vandevijver@skynet.be> wrote in message <gsd5o9$l7r$1@fred.mathworks.com>...
>
> doc uigetfile
> -> i know this command used it before it is to open a single file but i need the pathstring
> like my mapname is "pictures"
> I press my button select directory
> the the UI opens for browsing
> the i only select the map with 6000 pics in it.
> so i get
> x="pathstring"
On 4=D4=C219=C8=D5, =C9=CF=CE=E73=CA=B157=B7=D6, "Jiro Doke" <jiro.d...@mat=
hworks.com> wrote:
> "Hans Van de Vijver" <hans.vandevij...@skynet.be> wrote in message <gsd5o=
9$l7...@fred.mathworks.com>...
>
>
>
> > doc uigetfile
> > -> i know this command used it before it is to open a single file but =
i need the pathstring
> > like my mapname is "pictures"
> > I press my button select directory
> > the the UI opens for browsing
> > the i only select the map with 6000 pics in it.
> > so i get
> > x=3D"pathstring"
>
> Is "uigetdir" what you are looking for?
>
> jiro
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.