Community Profile

photo

ian benford


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


I want to transfer data from a for loop into a vector, i need to use rows of a matrix, every 3rd number(not every 3rd entry) in first column( 2 to 5 repeated numbers for each, tho random). Prob is output length unknown so difficult to prelocate
for x=[1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,1...

9 years ago | 1 answer | 0

1

answer

Question


i need to degenerate a matrix. I have 1 column with 11,2,2,2,3,3..748,749,749 ( max 5 repetitions for each integer, but random, 2340 in total), I need to select the data in the rows with the same integer value and pick one at random to give 749 rows
i need to degenerate a matrix. I have 1 column with 1,1,2,2,2,3,3..748,749,749 ( max 5 repetitions for each integer, but random,...

9 years ago | 2 answers | 0

2

answers