indexing entry of a matrix result
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Viesturs Veckalns
il 16 Ott 2017
Modificato: Viesturs Veckalns
il 16 Ott 2017
A is an MxN matrix. To get the number of columns of A I can do the following:
s = size(A);
ncol = s(2);
How can I construct a direct expression avoiding the intermediary variable s?
0 Commenti
Risposta accettata
Cedric
il 16 Ott 2017
[nRows, nCols] = size( A ) ;
if you don't need nRows:
[~, nCols] = size( A ) ;
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical 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!