%GMM for glove
% clc;
% clear;
%--------------load data---------------------
load glove_grasp_6_13_20_100points.mat
Odata = glove_grasp_6_13_20;
[subjectnum, motionnum, repnum] = size(Odata);
totaltimeused = 0;
% allresult = zeros(subjectnum,motionnum);
% allrate = zeros(1,19);
%%--------------------------------------------
%%
for modelnum = 1:1
for subject = 1:6
for motion = 1:motionnum
tstart1 = tic;
nbStates = 10;
%%---------------modeling---------------------
data4model = [];
for i = 1:modelnum %single:1
tmp = [1:100;Odata{subject,motion,i}]; %single
data4mo
% clc;
% clear;
%--------------load data---------------------
load glove_grasp_6_13_20_100points.mat
Odata = glove_grasp_6_13_20;
[subjectnum, motionnum, repnum] = size(Odata);
totaltimeused = 0;
% allresult = zeros(subjectnum,motionnum);
% allrate = zeros(1,19);
%%--------------------------------------------
%%
for modelnum = 1:1
for subject = 1:6
for motion = 1:motionnum
tstart1 = tic;
nbStates = 10;
%%---------------modeling---------------------
data4model = [];
for i = 1:modelnum %single:1
tmp = [1:100;Odata{subject,motion,i}]; %single
data4mo