photo

Monkey


Active since 2019

Followers: 0   Following: 0

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
256,490
of 302,380

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

RANK
 of 21,759

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 181,952

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


weird situation while using sprintf to generate a long string with 0 (probability of 0.5) and 1 (probability of 0.5) with space in between two adjacent characters
I use the following to generate a length 100 vector: a = sprintf('%d ', randi([0 1], 1, 100)); When I try length(a), it gives ...

7 years ago | 1 answer | 0

1

answer

Question


Generating long string with 0 (probability of 0.5) and 1 (probability of 0.5) with space in between two adjacent characters
I need to generate a long string containing characters of only 0 and 1. Each charater occurs with probability of 0.5. Besides, a...

7 years ago | 2 answers | 0

2

answers