classifing output inot category

2 次查看(过去 30 天)
I have a table that contains score of mental health staus per indvidual
I would like to create vector to store the each indvidual status whether it is good or bad.
I have create the following condition
score=sdq;
count=0;
for k=1:length(score)
if score(k)>17;
count=count+1;
end
end
it works well , however, Im looking to store the new out put in a new coloumns showing the condition of good or bad mental health status

采纳的回答

Adam Danz
Adam Danz 2020-5-29
isGood = score > 17; % isBad?
  4 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by