필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to swap a few rows randomly within the matrix for a set of N matrices?

조회 수: 1 (최근 30일)
MANISH KUMAR
MANISH KUMAR 2017년 1월 23일
마감: KSSV 2017년 1월 23일
For example, we have ‘ResultM’ which gives 5 matrices A, B, C, D, E. Now for the first matrix we select a few rows randomly (say 2) and swap them. The same process is followed for rest of the matrices also.
For example, we have matrix A
A = [0 0 0 1 0 0 0
*0 0 1 0 0 0 0*
0 0 0 0 0 1 0
*1 0 0 0 0 0 0*
0 0 0 0 0 0 1]
And we randomly select a few rows (say 2nd and 4th rows). Now we swap these rows.
A = [0 0 0 1 0 0 0
*1 0 0 0 0 0 0*
0 0 0 0 0 1 0
*0 0 1 0 0 0 0*
0 0 0 0 0 0 1]
Same process is followed for rest of the matrices also.
  댓글 수: 1
KSSV
KSSV 2017년 1월 23일
Mr. Manish same question you have asked multiple times. So, I am closing this question.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by