replace column

1 view (last 30 days)
Gova ReDDy
Gova ReDDy on 21 May 2011
How to replace a column with ones in a image containing rows and coulumns with zeros.

Accepted Answer

Matt Fig
Matt Fig on 21 May 2011
% 2D example:
A = zeros(5)
A(:,3) = 1
% 3D example:
A = zeros(3,3,3)
A(:,2,:) = 1
  1 Comment
Gova ReDDy
Gova ReDDy on 21 May 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;

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!