replace column
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
How to replace a column with ones in a image containing rows and coulumns with zeros.
0 Commenti
Risposta accettata
Matt Fig
il 21 Mag 2011
% 2D example:
A = zeros(5)
A(:,3) = 1
% 3D example:
A = zeros(3,3,3)
A(:,2,:) = 1
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!