replace column

6 次查看(过去 30 天)
Gova ReDDy
Gova ReDDy 2011-5-21
How to replace a column with ones in a image containing rows and coulumns with zeros.

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by