importdata() function problem

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));

回答 (1 件)

Star Strider
Star Strider 2022 年 3 月 12 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeLarge Files and Big Data についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2022 年 3 月 12 日

回答済み:

2022 年 3 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by