creating an input list from a large data set
3 次查看(过去 30 天)
显示 更早的评论
Hi! I want to create an input list from a large data set. dir .*csv displays all the csv but when i do
dir='C:\Lisajustin\vib'
Listdir=sprintf('%s%s',dir, ' *.csv');
i get error
Error using ==> sprintf
Function is not defined for 'struct' inputs.
0 个评论
采纳的回答
更多回答(2 个)
Azzi Abdelmalek
2012-10-18
folder='C:\Lisajustin\vib\'
list=struct2cell(dir([folder '*.csv']));
Listdir=list(1,:)
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!