Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y=1;
z_correct = 1;
assert(isequal(dividing(x,y),z_correct))
|
2 | Pass |
x = 1;
y=0;
z_correct = 'ERROR';
assert(isequal(dividing(x,y),z_correct))
|
3 | Pass |
x = Inf;
y=-Inf;
z_correct = 'ERROR';
assert(isequal(dividing(x,y),z_correct))
|
4 | Pass |
x = 1;
y=NaN;
z_correct = 'ERROR';
assert(isequal(dividing(x,y),z_correct))
|
203 Solvers
Sum of odd numbers in a matrix
233 Solvers
Append two matrix as shown below example
142 Solvers
Matlab Basics - Assigning Variables
109 Solvers
202 Solvers