Change all elements in 2nd column to 3
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
vArr = [ 5 5 5 5; 5 5 5 5 ; 5 5 5 5; 5 5 5 5; 5 5 5 5 ]
so i have this and i knw how to change one element but how to change whole colum??
i tired this vArr( :, 3 ) - 2 but then only shows one column
1 Commento
Risposte (1)
James Tursa
il 27 Set 2019
Modificato: James Tursa
il 27 Set 2019
vArr(:,2) = _____; % <-- you fill in the blank
6 Commenti
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB 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!