about reading strings with strread using a name of variable the string is allocated to
이전 댓글 표시
A = c(1,1)
[starting_number] = strread(???,'capture_%03d.fit')
where output for A is A =
'capture_667.fit'
How can I pass A into the strread??? Is that even possible?
p.s. The strread works if I type in the 'capture_667' inside it
채택된 답변
추가 답변 (1개)
Thorsten
2014년 10월 15일
Get rid of the extension '.fit'
[pathstr name ext] = fileparts(A);
starting_number = strread(name, 'capture_%03d');
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!