MATLAB: Do I receive an error when using the STRREAD function in MATLAB 7.0.1 (R14SP1) when specifying the “bufsize” input argument

bufsizeMATLABreadstringstrread

When I call STRREAD with the following syntax:
tmp = ['abcd|efgh|'];
for i=1:2036
tmp = [tmp 'ab'];
end
tmp = [tmp '|qrtsut|wxyz|'];
[q1, q2, q3, q4, q5] = strread(tmp,'%s%s%s%s%s','bufsize',16384,'delimiter','|');
I receive the following error:
??? Unknown option 'bufsize'.
Error in ==> strread at 51
[varargout{1:nlhs}]=dataread('string',varargin{:},'bufsize',2*num );

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
We have verified that there is a bug in MATLAB 7.0.1 (R14SP1) that affects the way STRREAD handles strings larger than 4094 characters when the 'bufsize' argument is used.
To work around this issue, do not use the 'bufsize' argument when calling STRREAD.