How to make a matrix with the entries being the number of even indices of that entry?
조회 수: 3 (최근 30일)
이전 댓글 표시
I need to make a 12x12 matrix with the entries being the number of even indices of the entry.
So 1,1 would be 0, 1,2 would be 1 and 2,2 would equal 2.
The task is specifically using for loops or the meshgrid function.
Any help would be appreciated.
댓글 수: 3
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!