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!