Multiply two numbers in a different manner. The numbers are given to you as vectors x and y.
Example
x = [ 1 2 0 1 ]
y = [ 8 5 1 ]
1 2 0 1
X 8 5 1
-------------------
1 2 0 1
5 10 0 5
8 16 0 8
----------------
8 21 11 10 5 1
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers111
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
479 Solvers
-
Sum all integers from 1 to 2^n
17393 Solvers
-
790 Solvers
-
Back to basics 23 - Triangular matrix
1117 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
512 Solvers
More from this Author21
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
You must check every time the result. The only case the will be checked is the 3rd.
And you cannot use randi on the 4th and 5th test case, and then use a fixed correct answer ;-)
thanks ramon,I fixed