SLM

Version 2.0 (1,62 KB) von Jos (10584)
special linear matrix
2,5K Downloads
Aktualisiert 18. Feb 2019

Lizenz anzeigen

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]

Zitieren als

Jos (10584) (2024). SLM (https://www.mathworks.com/matlabcentral/fileexchange/10031-slm), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Version Veröffentlicht Versionshinweise
2.0

modernised

1.0.0.0