photo

Sebastiano Inturrisi


Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


How do I create a string for values
I have written this code to produce values from 1 - 3 with set probabilities: B = randi(3,1); P = B; for i = 1:50 ...

6 years ago | 3 answers | 0

3

answers

Question


How do I create the follow array: [0 0 0 ... 0 1 2 ... 100 100 100], where there are 100 zeros on the left and 100 100's on the right? I must use the colon operator.
For previous questions I just used, for example, [0:0.01:1], to create the array from 0 to 1 using increments of 0.01. I just do...

7 years ago | 1 answer | 0

1

answer