This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 11; assert(isequal(divisible_by_21(x),0))
y =
1
y =
0
|
2 | Pass |
x = 20; assert(isequal(divisible_by_21(x),0))
y =
1
y =
0
|
3 | Pass |
x = 217; assert(isequal(divisible_by_21(x),0))
y =
1
y =
0
|
4 | Pass |
x = 231; assert(isequal(divisible_by_21(x),1))
y =
0
y =
1
|
5 | Pass |
x = 2240; assert(isequal(divisible_by_21(x),0))
y =
1
y =
0
|
6 | Pass |
x = 1236123; assert(isequal(divisible_by_21(x),1))
y =
0
y =
1
|
We love vectorized solutions. Problem 1 : remove the row average.
547 Solvers
07 - Common functions and indexing 1
338 Solvers
331 Solvers
2100 Solvers
67 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!