ExcelにおけるCOUNTIFSはどうコードできますか
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
KO
el 18 de Abr. de 2021
Comentada: KO
el 19 de Abr. de 2021
「OK」or「NG」が表示されている列があり,
何番目から何番目までの列で,”OK”のセルが何個あるか,というのを数えるときに,
ExcelではCOUNTIFSで指定範囲,指定条件を複数指定して設定できますが,
MatLabではIF関数などを使って上手く作れるでしょうか.
0 comentarios
Respuesta aceptada
Hernia Baby
el 18 de Abr. de 2021
categoricalに変更してカウントはいかがでしょうか?
A = categorical({'NG' 'OK' 'OK' 'OK' 'NG'});
cnt = sum(A=='OK')
cnt = 3
NGもまとめて見たいよって場合はcountcatsをお勧めします
Más respuestas (0)
Ver también
Categorías
Más información sobre スプレッドシート 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!