How to create all range of given vector (possible permutations)?
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
How to create all possible values of vector. For example, I have binary vector of length 2, then are possible four vectors.
[0 0; 1 1; 1 0; 0 1];
So what if I have binary vector of length 10, then there are 2^10 different vector. How may I generate all possible vectors. Specially, when my vector is not binary too. For example, if I have unint8 vector of length two, then there are 256^2. How may I do this ?
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 NaNs에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

