Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3; 4 5 6; 7 8 9]
y = [3 5 6; 7 1 2; 4 9 8]
isPerm = true;
assert(isequal(isPermute(x,y),isPerm))
x =
1 2 3
4 5 6
7 8 9
y =
3 5 6
7 1 2
4 9 8
|
2 | Pass |
x = [1 2; 4 5; 7 8];
y = x';
isPerm = true;
assert(isequal(isPermute(x,y),isPerm))
|
3 | Pass |
x = 1:50;
y = randperm(50);
isPerm = true;
assert(isequal(isPermute(x,y),isPerm))
|
4 | Pass |
x = 2:51;
y = randperm(50);
isPerm = false;
assert(isequal(isPermute(x,y),isPerm))
|
5 | Pass |
x = [1 2 3; 4 5 6; 7 8 9]
y = [3 5; 7 1; 4 9]
isPerm = false;
assert(isequal(isPermute(x,y),isPerm))
x =
1 2 3
4 5 6
7 8 9
y =
3 5
7 1
4 9
|
How to find the position of an element in a vector without using the find function
2320 Solvers
Back to basics 21 - Matrix replicating
900 Solvers
Back to basics 25 - Valid variable names
253 Solvers
Number of odd and even elements within matrix
100 Solvers
Find out sum of all elements of given Matrix
271 Solvers