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!