Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [4,5,5,4];
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
|
2 | Pass |
x =ones(4);
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
|
3 | Pass |
x = [2,7,2; 6,9,6; 2,7,2];
y_correct = true;
assert(isequal(isPalindrome(x),y_correct))
|
4 | Pass |
x = [1,2,3];
y_correct = false;
assert(isequal(isPalindrome(x),y_correct))
y =
logical
0
|
5 | Pass |
x = [2,7,2; 6,9,6; 3,5,3];
y_correct = false;
assert(isequal(isPalindrome(x),y_correct))
|
Program an exclusive OR operation with logical operators
597 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
263 Solvers
Matrix indexing with two vectors of indices
408 Solvers
229 Solvers
Determine the number of odd integers in a vector
322 Solvers