Function that returns an NxN matrix
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Stephen23
2014 年 10 月 8 日
All functions require MATLAB commands, starting with the function function.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!