Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (sh3lsh):

Can you explain this? It's matlab.

OpenStudy (sh3lsh):

I thought it would be 0 0 0 1

OpenStudy (phi):

I am not sure how you got 0 0 0 1 but in matlab, bob has shape 3 rows x 4 cols the index 1:2:3 means start at 1 and increment by 2 until you reach (or pass) the upper limit. i.e you will get 1 and 3 , mean the first and last rows 0 0 0 1 0 0 0 1 the 1:3:5 (indices of the columns) will select 1, 4 the first column is 0 0 the fourth col is 1 1

OpenStudy (sh3lsh):

Thanks so much!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!