Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以告诉 MATLABtextscan将制表符导入为四个空格?目前它只用一个空格替换一个选项卡:
textscan
raw = textscan(fid,'%s','Delimiter','\n','Whitespace','');
先感谢您 :)
谢谢@Dev-iL,
我想也许有一些选项可以添加到 textscan,但现在我添加了你建议的另一行代码:
raw = textscan(fid,'%s','Delimiter','\n','Whitespace',''); raw = regexprep(raw{1},'\t',' ');