Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = struct();
a.a = 1;a.b = 2;a.c = 3;
y_correct = [1;2;3];
assert(isequal(your_fcn_name(a),y_correct))
|
2 | Pass |
a = struct();
a.a = 1;a.b = 2;a.c = 3;a.d = 4;
y_correct = [1;2;3;4];
assert(isequal(your_fcn_name(a),y_correct))
|
17223 Solvers
1143 Solvers
Sum of diagonal of a square matrix
1327 Solvers
546 Solvers
Sum the 'edge' values of a matrix
232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!