mat2im
Convert 2D matrix to a 3D image matrix as used by the image processing toolbox
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Rob Campbell (2026). mat2im (https://www.mathworks.com/matlabcentral/fileexchange/26322-mat2im), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: real2rgb & colormaps
General Information
- Version 1.4.0 (2.1 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.4.0 | Fixed bug that stopped the image being correctly scaled if user specified max or min values outside of the image range. |
||
| 1.3.0 | Switch to 1 based indexing if mat is not a double. |
||
| 1.2.0 | Add H1 line, add ability clip at min or max values, improve error checking, improve comments, add a second example. |
||
| 1.1.0 | Image Processing tlbx isn't required. |
||
| 1.0.0 |