vendredi 30 décembre 2016

random selection of specific user in MATLAB

I am analysing some data which have multiple subjects. Information about every subject is stored in the MATLAB structure (.mat file)

For Example:

U1_Acc_TimeD_FreqD_FDay.mat

U2_Acc_TimeD_FreqD_FDay.mat

U1_Acc_TimeD_FreqD_FDay.mat

and so on...

I have loaded all of them into on file using this command

clear;
  for nc = 1 : 36
      data{nc} = load( sprintf('U%02d_Acc_TimeD_FreqD_FDay.mat', nc) );
  end

I would like to access the data of one user at the time (randomly selected, for example, User2) and store it in one variable in order to compare it with the remaining users. the remaining users should be stored in another variable.

For example, if I select User3, so the remaining data will be User1, User2, User4, User5, User6 and so on.

Thanks




Aucun commentaire:

Enregistrer un commentaire