Dear sir, I have 25 text files of detail about wave parameters. How could i write the command to extract data from my selection file?
显示 更早的评论
cd('D:\coding\datawave');
fid=fopen('file_21.txt');
data=textscan(fid,'%s %s %s %f %f');
height=cell2mat(data(4));
1 个评论
KSSV
2015-10-15
if all the data are numbers you can use importdata. Also go through fscanf, textread, load etc.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!