How to calculate the number of elements in a matrix?
33 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nicoleta
il 9 Gen 2016
Commentato: Pravin Narola
il 19 Lug 2019
e.g having this matrix: M=[ 1 2 3; 7 8 9] I want to return 6 which is the total number of elements I want some other method besides size(M,1)*size(M,2). Thx
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!