classifing output inot category

2 visualizaciones (últimos 30 días)
Doaa Alamoudi
Doaa Alamoudi el 29 de Mayo de 2020
Comentada: Adam Danz el 29 de Mayo de 2020
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

Respuesta aceptada

Adam Danz
Adam Danz el 29 de Mayo de 2020
isGood = score > 17; % isBad?
  4 comentarios
Doaa Alamoudi
Doaa Alamoudi el 29 de Mayo de 2020
Thank alot
Adam Danz
Adam Danz el 29 de Mayo de 2020
Glad I could help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by