Matlab: Randomize and Split

Posted by Null-Hypothesis on Stack Overflow See other posts from Stack Overflow or by Null-Hypothesis
Published on 2012-09-26T21:17:40Z Indexed on 2012/09/26 21:37 UTC
Read the original article Hit count: 218

Filed under:
|
|

I have following data matrix in Matlab, I am trying to actually split this into multiple segments by passing a variable to a matlab function. But before splitting I would like to shuffle the matrix. The size of my matrix is 150X4

s.data
5.1000    3.5000    1.4000    0.2000
4.9000    3.0000    1.4000    0.2000
4.7000    3.2000    1.3000    0.2000
4.6000    3.1000    1.5000    0.2000
5.0000    3.6000    1.4000    0.2000
..

s = 

  data: [150x4 double]
labels: [150x1 double]

Coming from R environment I find MatLab is very strange. Initially I thought the columns in matrix has a relationshop like in a R dataframe but thats wrong in my assumption.

© Stack Overflow or respective owner

Related posts about matlab

Related posts about matrix