在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Hi all, I would like to read the data all at once with: `file_text = fread(fid, inf, 'uint8=>char')`; and then use strfind to get the indices of the new line characters. unfortunately my calls to strfind are only returning empty arrays: strfind(file_text,'\n') ans =[] what am i doing wrong? strfind(data,'\n') This searches for backslash and 'n'! So either use: strfind(data, sprintf('\n')) or strfind(data, char(10)); And perhaps the file has DOS line breaks, then use: strfind(data, char([13, 10])); |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论