This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
A = [1 2 3 4 5];
B = [100 200 300 4 500];
y_correct = [1 2 3 5];
assert(isequal(sort(find_A_not_in_B(A,B)),sort(y_correct)))
ele =
1 2 3 5
|
2 | Pass |
%%
A = [12 1 2 -10 5];
B = [12 5];
y_correct = [-10 1 2];
assert(isequal(sort(find_A_not_in_B(A,B)),sort(y_correct)))
ele =
1 2 -10
|
3 | Pass |
%%
A = [-5 -2];
B = [0 0 0 0 0 1 0];
y_correct = [-5 -2];
assert(isequal(sort(find_A_not_in_B(A,B)),sort(y_correct)))
ele =
-5 -2
|
Find the numeric mean of the prime numbers in a matrix.
6782 Solvers
1964 Solvers
Is this triangle right-angled?
2396 Solvers
498 Solvers
Matlab Basics - Set unwanted parts of a vector to zero
197 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!