Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3 4 5];
y = [1 2 3 4 5];
ele_mult_vec = [1 4 9 16 25];
assert(isequal(your_fcn_name(x,y),ele_mult_vec))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint1 (line 4)
In solutionTest (line 3)]
|
2 | Pass |
x = ones(1,10);
y = ones(1,10);
ele_mult_vec = ones(1,10);
assert(isequal(your_fcn_name(x,y),ele_mult_vec))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint2 (line 4)
In solutionTest (line 5)]
|
3 | Pass |
x = ones(1,10);
y = 10:10:100;
ele_mult_vec = 10:10:100;
assert(isequal(your_fcn_name(x,y),ele_mult_vec))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint3 (line 4)
In solutionTest (line 7)]
|
4 | Pass |
x = 10:10:100;
y = 0.1*ones(1,10);
ele_mult_vec = 1:10;
assert(isequal(your_fcn_name(x,y),ele_mult_vec))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint4 (line 4)
In solutionTest (line 9)]
|
5 | Pass |
x = 1:3;
y = 4:6;
ele_mult_vec = [4 10 18];
assert(isequal(your_fcn_name(x,y),ele_mult_vec))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint5 (line 4)
In solutionTest (line 11)]
|
6 | Pass |
x = mod(1:100,2);
y = mod([2:100,1],2);
ele_mult_vec = zeros(1,100);
assert(isequal(your_fcn_name(x,y),ele_mult_vec))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint6 (line 4)
In solutionTest (line 13)]
|
Find the sum of the elements in the "second" diagonal
994 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
321 Solvers
07 - Common functions and indexing 3
317 Solvers
Find out total non zero element of matrix
193 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!