MATLAB: Do I get an error when using the DEPFUN function in MATLAB 7.0.4 (R14SP2)

MATLAB

When I use the DEPFUN function in MATLAB 7.0.4 (R14SP2), I get an error when the function should return an empty cell. For example, if I type the following command:
list = depfun('lasterr', '-toponly');
I receive the following error:
Error Messages: ??? Index exceeds matrix dimensions.
Error in ==> depfun>fix_output_data at 597
trace_list = [trace_list(1:narg_files); tmp]; % new, sorted list
Error in ==> depfun at 326
fix_output_data; % clean up the output data

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB 7.0.4 that causes the DEPFUN function to throw an error when it should return an empty cell.
There are no workarounds.