i have a lot of data in a range of 0 until 250. this data is no descending or ascending order. Its random data.Now i want to classified this data into meditation & attention state. i need to classified the data using a range

2 vues (au cours des 30 derniers jours)
while 1
brain=fread(bt)
if (100<brain) && ( brain<150)
disp ( 'attention')
end
end

Réponse acceptée

KSSV
KSSV le 29 Nov 2018
data = randsample(0:250,250)' ;
C = cell(length(data),1) ;
brain = 50 ;
idx = 100<data & data<150 ; % check this properly
C(idx) = {'attention'} ;
C(~idx) = {'meditation'} ;
T = table(data,C)

Plus de réponses (1)

madhan ravi
madhan ravi le 29 Nov 2018
while 1
brain=fread(bt)
if (100<brain) && ( brain<150)
disp ( 'attention')
elseif .....condition goes here
disp('meditation')
end
end

Catégories

En savoir plus sur Neuroimaging dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by