You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Many MATLAB functions use a range of values and many times its the range of your data such as
>> caxis([lo hi])
Use
>> caxis(limits(x))
instead of
>> caxis([min(x(:)) max(x(:))])
especially for long variable names!
Cite As
Robert Bemis (2026). Matrix Limits (https://www.mathworks.com/matlabcentral/fileexchange/2488-matrix-limits), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.1 (1.41 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
