importdata() function problem
9 views (last 30 days)
Show older comments
I've a problem with importdata() function. In the first case it works but in the second not. Any ideas?
filename = filelist(i,:); --> array of char
%work
working = importdata('/Users/myUser/Docu/MATLAB/Matlab_work/Dafare/Ballarin_seg1andata_lap1.csv');
%doesn't work
notWorking = importdata(str(filename));
0 Comments
Answers (1)
Star Strider
on 12 Mar 2022
It would be helpful to know what ‘not working’ actually means.
Assuming that ‘filelist’ is a cell array, perhaps:
filename = filelist{i,:};
would work.
Note — Curly brackets {} indicating indexing into the content of the cell array.
0 Comments
See Also
Categories
Find more on LaTeX 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!