MATLAB: All posible combinations of 0 and 1 combinations HI guys, I just need help getting the 16 different combinations 0 and 1 can take. Ex. 0 0 0 1 0 0 1 0 0 1 0 0 . . . anyone please can help me? Best Answer dec2bin(0:15,4)-'0' Related SolutionsMATLAB: How to replace the elements of a matrix with other matrix reshape(permute(reshape(a,[2 1 2 4]),[1 4 2 3]),4,[]).' MATLAB: Creating a large matrix with a pattern Hi bus14,Try this:m=zeros(804,200);m([1,2,4],:)=1;m2=reshape(m,800,[]);m2(:,201)=[]; Related QuestionGenerate All Possible combinationsMatrix with gradually increasing!Creating a Matrix including ones on diagonalGenerate all possible combinations
Best Answer