classifing output inot category

2 ビュー (過去 30 日間)
Doaa Alamoudi
Doaa Alamoudi 2020 年 5 月 29 日
コメント済み: Adam Danz 2020 年 5 月 29 日
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 件のコメント
Doaa Alamoudi
Doaa Alamoudi 2020 年 5 月 29 日
Thank alot
Adam Danz
Adam Danz 2020 年 5 月 29 日
Glad I could help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics 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