
MATLAB Workspace
Specify Maximum Array Size on Which to Compute Statistics
If you show statistical columns in the Wo rkspace browser, and if you work
with very large arrays, you might experience performance issues when the
data changes as MATLAB updates the statistical results. In that event, show
only the columns of interest to you and hide those you do not need.
Another step you can take is specify via a preference that the Workspace
browser not perform statistical calculations on the largest arrays. Use the
arrows to change the value of the maximum array size for which you want
the Workspace brow ser to perform statistical calculations. The default value
is
500,000 elements. Any variable exceeding that size reports <Too many
elements>
instead of statistical results.
Handling NaN Values in Calculations
If your data includes NaNs, you can s pecify that the statistical calculations
consider the NaNs, or ig nore the NaNs. For example, if a variable includes
a
NaN and the preference is se t to Use NaNs when calculating statistics,
the values for Min, Max, Var and some others w ill appear as
NaN, although
Mode, for example, shows a numeric result. With the preferenc e set to Ignore
NaNs whenever possible, numeric results appear for most of the statistical
columns including Min and Max, however, Var is still reported a s
NaN.
For more information about statistical values in the Workspace brow ser, see
“Viewing and Editing Values in the Current Workspace” on page 5-3.
5-11
Commentaires sur ces manuels