Community Profile

photo

Nick Suttell


Active since 2013

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Answered
How to turn a 64-bit matrix into a binary matrix
Basically I want to change each value in the matrix from 8 bytes to 1 bit

10 years ago | 0

| accepted

Question


How to turn a 64-bit matrix into a binary matrix
I have a matrix that is millions of rows long. It's a matrix of only one's and zero's. I want to turn the value type from 64-b...

10 years ago | 3 answers | 0

3

answers

Question


How can I create a random binary matrix with a specified number of 1's and 0's?
fi = 1/3 x = randi([0 1],1,9); while (mean(x)~= fi) x = randi([0 1],1,9); end This...

10 years ago | 4 answers | 0

4

answers