From: Hugo on
Hi. I just wanted to know how can I check in MATLAB if a file exists in some directory. At the moment I have a workable version using unix syntax, however I would like to know if the same can be done by using a built-in function of MATLAB. Many thanks.
From: Bruno Luong on
"Hugo " <hresquiveloa(a)gmail.com> wrote in message <i2dhu4$17b$1(a)fred.mathworks.com>...
> Hi. I just wanted to know how can I check in MATLAB if a file exists in some directory. At the moment I have a workable version using unix syntax, however I would like to know if the same can be done by using a built-in function of MATLAB. Many thanks.

help EXIST

Bruno
From: kk KKsingh on
"Hugo " <hresquiveloa(a)gmail.com> wrote in message <i2dhu4$17b$1(a)fred.mathworks.com>...
> Hi. I just wanted to know how can I check in MATLAB if a file exists in some directory. At the moment I have a workable version using unix syntax, however I would like to know if the same can be done by using a built-in function of MATLAB. Many thanks.

You can use any unix command ! in matlab if you are looking for some file type with ! command like ! find *.m will find all m files for u

Thanks

kk
From: Hugo on
Bruno,

Thanks!
From: Hugo on
kk,

Thanks for the tip...