Define the vectors aVec and bVec:

and

Using elementwise operations, calculate yVec:
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers439
Suggested Problems
-
Return the 3n+1 sequence for n
8513 Solvers
-
Number of 1s in the Binary Representation of a Number
484 Solvers
-
469 Solvers
-
Return elements unique to either input
814 Solvers
-
1069 Solvers
More from this Author26
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
There's a typo in the test suite - the third element in aVec should be 9, not 8.