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]
인용 양식
Jos (10584) (2024). SLM (https://www.mathworks.com/matlabcentral/fileexchange/10031-slm), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!