replace column

1 vue (au cours des 30 derniers jours)
Gova ReDDy
Gova ReDDy le 21 Mai 2011
How to replace a column with ones in a image containing rows and coulumns with zeros.

Réponse acceptée

Matt Fig
Matt Fig le 21 Mai 2011
% 2D example:
A = zeros(5)
A(:,3) = 1
% 3D example:
A = zeros(3,3,3)
A(:,2,:) = 1
  1 commentaire
Gova ReDDy
Gova ReDDy le 21 Mai 2011
danx...and how to apply % gaussmf % for each column or each row havin the no. of rows and columns as
x=zeros(50,1600);
x(24,:)=1;

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by