You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
SLM creates a special matrix in which each element is the same as its linear index.
I know, it's quite simple, but I find such a matrix is often useful during algorithm development. It has exactly the same calling index as <ones>, <rand> etc.
SLM(2,3) => [1 3 5 ; 2 4 6]
Cite As
Jos (10584) (2026). SLM (https://www.mathworks.com/matlabcentral/fileexchange/10031-slm), MATLAB Central File Exchange. Retrieved .
General Information
- Version 2.0 (1.62 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
