matlab did not found the file but it is there and comand window has no problem?
Show older comments
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
Answers (1)
Sean de Wolski
on 6 Nov 2014
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')
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!