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

Réponses (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')

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by