showing error in this line ? please do help us to get the output ?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
m1=max(max(A(i:i+95,j:j+127)));
1 Commento
Risposte (1)
Star Strider
il 26 Gen 2016
You have to be certain your ‘A’ matrix is large enough so that your addressing does not access elements outside its index range.
This works:
A = randi(99, 200);
i = 10;
j = 20;
m1=max(max(A(i:i+95,j:j+127)));
0 Commenti
Vedere anche
Categorie
Scopri di più su Desktop in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!