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 (최근 30일)
이전 댓글 표시
while 1
brain=fread(bt)
if (100<brain) && ( brain<150)
disp ( 'attention')
end
end
댓글 수: 0
채택된 답변
KSSV
2018년 11월 29일
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)
댓글 수: 0
추가 답변 (1개)
madhan ravi
2018년 11월 29일
while 1
brain=fread(bt)
if (100<brain) && ( brain<150)
disp ( 'attention')
elseif .....condition goes here
disp('meditation')
end
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Neuroimaging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!