Finding a Number in a random array
이전 댓글 표시
So I am given the code p1pA=magic(7).
How would I use Matlab to find the number in the fourth row and sixth column?
Also how would I find the twentieth number?
채택된 답변
추가 답변 (1개)
Turlough Hughes
2019년 10월 7일
0 개 추천
Have a look at the following documentation and scroll down to the part about indexing matrices with two subscripts. For your second question I believe you are looking for linear indexing which is the next section.
카테고리
도움말 센터 및 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!