Function that returns an NxN matrix
이전 댓글 표시
I need to create a function that when a value for N is entered it returns an NxN identity matrix. But this needs to be done without employing Matlab commands which operate on entire matrices, rows, and columns.
댓글 수: 2
Andrei Bobrov
2014년 10월 8일
in MATLAB without employing Matlab commands - how?
Stephen23
2014년 10월 8일
All functions require MATLAB commands, starting with the function function.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!