我有一个其他人编写的 matlab 脚本,它无法加载长度超过 4095 的字符串序列(缓冲区大小错误)。如何使元素struct
更大以容纳更大的字符串序列?这是创建的代码位struct
:
[...]
seq = struct('Header',{}, 'Sequence', {});
for ii=1:gene_num
seq(ii).Header = raw{ii+1,1};
seq(ii).Sequence = raw{ii+1,2};
end;
[...]
这是错误:
^G??? Buffer overflow (bufsize = 4095) while reading string from
file (row 54660, field 1). Use 'bufsize' option. See HELP TEXTREAD.
Error in ==> textread at 177
[varargout{1:nlhs}]=dataread('file',varargin{:});
Error in ==> fastaread at 101
ftext = textread(filename,'%s','delimiter','\n');
Error in ==> tfbs_scanner_zscore at 8
S = fastaread(fin);
有任何想法吗?