Finding a Number in a random array
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (1)
Turlough Hughes
il 7 Ott 2019
0 voti
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.
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!