Assume we have the following array as declared in the following example: x(1)=1 x(2)=2 x(3)=3 x(4)=4 x(5)=5 . up to . . x(100)=100 Assume we have already read this array (i.e stored already in x(i)) how can write a MATLAB code to select 30% of the observation x(i).How can form two groups ,1st containing 30% and 2nd containing 70%
MATLAB: To separate a set of data into two groups
separating data
Related Question
- Dividing a set of values into groups
- How can i randomly sample from a matrix and determine the remaining part
- Make two groups of data from a given data set
- Finding corresponding interpolated x values for defined y values
- Can please someone tell me how to use multiclass svm image datatset in matlab
- Is there a function in MATLAB to split the dataset into 70% for training and 30% for validation
Best Answer