Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
v=[1 0 0 -1];
w=[1 -1];
assert(integ(v,w))
y =
1 1 1
ans =
logical
1
|
2 | Pass |
v=[2 9 6 -1 16 -5];
w=[2 3 -1 5];
assert(integ(v,w))
y =
1 3 -1
ans =
logical
1
|
3 | Pass |
v=[1 4 10 20 35 50 58 58 49 30];
w=1:6;
assert(integ(v,w))
y =
1 2 3 4 5
ans =
logical
1
|
4 | Pass |
v=1:10;
w=1:6;
assert(~integ(v,w))
y =
1 0 0 0 0
ans =
logical
0
|
5 | Pass |
v=3:12;
w=-3:2;
assert(~integ(v,w))
y =
-1.0000 -0.6667 -0.8889 -1.1852 -1.5802
ans =
logical
0
|
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Find the maximum number of decimal places in a set of numbers
734 Solvers
Who has power to do everything in this world?
318 Solvers
376 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!