MATLAB: Hi,,is there anyone who could tell me,how to generate a 10 bit binary data with only ONE in the first position and rest is zero binary data generation The data stream should be like this, A=[1 0 0 0 0 0 0 0 0 0] Best Answer If you want to be compatible with the MATLAB binary data representation convention, this works:n = dec2bin(0, 10);n(1) = '1'; Related SolutionsMATLAB: Generate 0 and 1 rand() < 0.6If you want a random binary sequence of length n, then this is sufficient: rand(1,n) < 0.6 MATLAB: Hi,,is there anyone who could suggest any way of calculating the weight of a matrix row-wise withh=histogram(sum(A,2),[0:5])count=h.Values 0 0 2 1 1you have the result in the variable count, reading:0 rows have null '1', 0 rows have one '1', 2 rows have two '1', 1 row has three '1' and 1 row has four '1'.the histogram field to the right, filled with [0:5] defines the histogram bin edges: 4 bins need 5 edges.If you find this answer of any help solving your question,please click on the thumbs-up vote link, or mark it as accepted answerthanks in advanceJohnjgb2012@sky.com Related QuestionHi,,is there anyone who could help in implementing the DECODER of LDPC codeProblem with XOR bitsBinary to decimal – 8 bits at a timeHow to convert decimal into binaryHi,,is there any way,I can generate a vector with 10 bit with only zero and 25
Best Answer