Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
C=[4; 1; 2];
R=[2 3 5];
M=[8 12 20; 2 3 5; 4 6 10];
assert(isequal(mul(C,R),M));
|
2 | Pass |
C=[1; 1; 1];
R=[1 1];
M=ones(3,2);
assert(isequal(mul(C,R),M));
|
3 | Pass |
C=[1;2;3;0];
R=[7,2];
M=[7 2; 14 4; 21 6; 0 0];
assert(isequal(mul(C,R),M));
|
How to find the position of an element in a vector without using the find function
2477 Solvers
Set the array elements whose value is 13 to 0
935 Solvers
315 Solvers
498 Solvers
241 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!