matlab did not found the file but it is there and comand window has no problem?

Hy ;-) my problem is that matlab did not find the file but it is there!!! The variable has the name the path is in matlab knonw! but if exists (fn, 'file') is evaluate 0 so this question failed?
but when i type fn in comand window ....
K>> fn
fn = Data\Versuch_001_260514_1030\EKG_1.csv
it is there ... what is that silly problem? Can someone helps me?? Waht is the difference between comand window and source ???
thx

Respuestas (1)

Probably need a .\ At the beginning to indicate that data is a folder
fn = '.\Data\etc'
You can use fullfile to help with this:
fullfile(pwd,'Data','verush.csv')

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Nov. de 2014

Respondida:

el 6 de Nov. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by