Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 5;'M' 7];
y_correct = [0 0;1 0]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
0 0
1 0
y =
2×2 logical array
0 0
1 0
|
2 | Pass |
x = ['M' 7 7;1 'M' 6; 5 8 'M'];
y_correct = [1 0 0;0 1 0;0 0 1]
assert(isequal(your_fcn_name(x),y_correct))
y_correct =
1 0 0
0 1 0
0 0 1
y =
3×3 logical array
1 0 0
0 1 0
0 0 1
|
Arrange vector in ascending order
624 Solvers
262 Solvers
Matlab Basics - Create a row vector
277 Solvers
307 Solvers
903 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!