Can someone help me Create a function called that will automatically generate an array where the elements in the array are the sum of the indices? i am lost on this.
显示 更早的评论
% Im not even sure if I am on the right path here but here is what i have started... any help would be greatly appreciated!!
function A = MagicArrayAdd(m,n)
m = magic(m)
n = magic(n)
A = ?
end
1 个评论
darova
2019-9-27
Can you please provide some example? How output should looks like?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!