필터 지우기
필터 지우기

How to compute the following questions

조회 수: 1 (최근 30일)
Hong
Hong 2024년 2월 23일
답변: Walter Roberson 2024년 2월 23일
StudentID Test 1 Test 2 Final Total
1201 66 75 70 70.5
1210 69 60 77 69.9
1215 82 85 68 76.6
1220 92 89 95 92.5
1235 49 58 54 54.0
1238 75 87 90 85.3
1239 81 65 62 67.7
1240 40 39 30 35.2
1255 65 70 55 62.0
1257 67 83 80 77.7
1270 48 53 60 54.9
1271 68 78 55 65.2
Hi, I got this table and I wanted to compute how many students have there final mark better than total what commands should i use. I use the boolean expression and i got logical array in return but the number of students whose got their final better than their total.

답변 (1개)

Walter Roberson
Walter Roberson 2024년 2월 23일
You can use
nnz(BooleanArray)
or
sum(BooleanArray)
to get the number of selected results.

카테고리

Help CenterFile Exchange에서 Hypothesis Tests에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by