generating a matrix value

조회 수: 1 (최근 30일)
FIR
FIR 2012년 2월 14일
편집: Cedric 2013년 10월 11일
i have a an image ,please tell hoe to make some values zero in that matrix ,i am struck here for long time ,please help,like these i need 10amatrices
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 2월 14일
Is this the same question or a different question than http://www.mathworks.com/matlabcentral/answers/28624-error-using-256x256matrix
Neither of the questions has enough information about what has to be done for there to be a meaningful response.
This is for PSO, right?
FIR
FIR 2012년 2월 14일
Walter i left out Pso at present since i am in need to submit my project,in next phase i decided to perform pso ,that is within a week ,now i want to do simple codings
that is
I have an image of 256x256,in thsese matrices i want to make some values as zero
for example let me consider 3x3
A=[2 3 9
1 8 5
2 7 6]
i need 10 matrix like
A_1=[2 0 9
0 8 0
2 7 0]
A_2=[0 3 9
1 0 5
0 0 6]
;
;
;
A_10=[2 3 0
0 8 0
2 7 0]
like this i need to perform for 256x256 matrix,please help,

댓글을 달려면 로그인하십시오.

답변 (1개)

Sean Lawson
Sean Lawson 2012년 2월 14일
Need to be more specific, like do you have special requirements for the entries that you want it to be 0's?
Simply put, a(i,j)==0 makes entry (i,j) in matrix a 0.
  댓글 수: 1
FIR
FIR 2012년 2월 14일
No sean i dont have any special requirements,polease see my notes above

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by