MAtrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi there I have a matrix of size 298 x 19. I want to have just one column, so 289x1, but it to be the addition of the row.
So I want to add all the columns to turn it to 298x1.
0 Commenti
Risposta accettata
Più risposte (1)
Thomas
il 28 Mag 2012
is this what you need
q=rand(2,3) % random matrix 2x3
out=sum(q,2) % sum each row so output is just 1 column for each row
0 Commenti
Vedere anche
Categorie
Scopri di più su Random Number Generation 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!