Problem 2157. Multiplication
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
J.R.! Menzinger
on 6 Feb 2014
You must check every time the result. The only case the will be checked is the 3rd.
J.R.! Menzinger
on 6 Feb 2014
And you cannot use randi on the 4th and 5th test case, and then use a fixed correct answer ;-)
Abdullah Caliskan
on 6 Feb 2014
thanks ramon,I fixed
Solution Comments
Show commentsProblem Recent Solvers90
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6188 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15511 Solvers
-
Remove all the words that end with "ain"
2272 Solvers
-
Create a square matrix of multiples
471 Solvers
-
Magic is simple (for beginners)
9077 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!