Matlab,textscan:标点符号序列

Matlab, textscan: sequence of punctuation marks

我想使用 "," 作为分隔符,但我做不到。我试过了:

temp = textscan('the first","the second','%s',2,'Delimiter','","');

但结果是:

temp{:}

ans = 'the first'

temp = textscan('the first","the second','%s',5,'Delimiter',{'","'});

我找不到文档的相关部分,但是对于字符数组 textscan 使用每个字符作为单独的分隔符。检查 temp = textscan('the first","the second','%s',4,'Delimiter','","'); 以了解定界符是如何插入您的代码中的。