photo

Charlotte Mason


Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


run a function with 2 outputs multiple times
I'm sorry if this has been asked before, but I can't find any questions which give a simulation printing 2 different outputs fro...

ungefär 7 år ago | 1 answer | 0

1

answer

Question


I want to randomly select from a list of rows from a matrix to change the values
I have a matrix B of 0's and 1's, and I have selected the rows and columns that contain the 1's. I now want to randomly choose s...

ungefär 7 år ago | 1 answer | 0

1

answer

Question


I need to count the numbers from a vector to form a new vector, so I need to use (2, 3, 1) to get (1, 1, 2, 2, 2, 3). How do I do this?
I have a vector which contains the values of the degrees for each node, so nodes (1, 2, 3) have degree (2, 3, 1) respectively. I...

ungefär 7 år ago | 1 answer | 0

1

answer