Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = int8(1);
b = int8(2);
c = intOrfloat(a, b)
assert(isequal(c,-1))
c =
int8
-1
|
2 | Pass |
a = 1;
b = 2;
c = intOrfloat(a, b)
assert(isequal(c,3))
c =
3
|
3 | Pass |
a = uint8(1);
b = uint8(2);
c = intOrfloat(a, b)
assert(isequal(c,0))
c =
uint8
0
|
4 | Pass |
a = int16(100);
b = int16(200);
c = intOrfloat(a, b)
assert(isequal(c,-100))
c =
int16
-100
|
5 | Pass |
a = single(100);
b = single(200);
c = intOrfloat(a, b)
assert(isequal(c,300))
c =
single
300
|
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Longest run of consecutive numbers
1648 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
267 Solvers
Deleting an element in a matrix
325 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!