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!