MATLAB: Svmtrain

urgent

Hello all,
I have two sets of data each of size 3×400. I would like to train them using svmtrain but I don't know what I should put for group. Can you please help me? can you also let me know what should I put for group if I get data with arbitrary sizes? thanks.

Best Answer

Each data sample must belong to a pre-known group for the purpose of svmtrain. The grouping variable is a list of which group each sample belongs to.
Do you have 3 features or 400 features? Are your two data sets indicating exactly two different groups, or are there entries from multiple groups within a data set? If your data is already split by groups, then your group variable should be 1 for each member of the first data set and 2 for each member of the second data set.