Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = [ 1 0 0 0; 0 0 0 24];
b = 1;
assert(isequal(your_fcn_name(a),b))
v =
0.2500
0.1000
0.0500
0.0100
ans =
0.2500
0.2400
a =
0.2500
b =
1
y =
1
|
2 | Pass |
a = [ 1 22 1 15;
12 3 13 7;
10 8 23 99];
b = 3;
assert(isequal(your_fcn_name(a),b))
v =
0.2500
0.1000
0.0500
0.0100
ans =
2.6500
4.0200
5.4400
a =
5.4400
b =
3
y =
3
|
3 | Pass |
a = [ 2 1 1 1;
1 2 1 1;
1 1 2 1;
1 1 1 2;
4 0 0 0];
c = 5;
assert(isequal(your_fcn_name(a),c))
v =
0.2500
0.1000
0.0500
0.0100
ans =
0.6600
0.5100
0.4600
0.4200
1.0000
a =
1
b =
5
y =
5
|
434 Solvers
366 Solvers
2101 Solvers
Sum of the Multiplication of Vectors
202 Solvers
134 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!