importdata() function problem

조회 수: 9 (최근 30일)
Suad Vejselovski
Suad Vejselovski 2022년 3월 12일
답변: Star Strider 2022년 3월 12일
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일
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.

카테고리

Help CenterFile Exchange에서 LaTeX에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by