replace column

조회 수: 1 (최근 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에서 Images에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by