-
3 Comments
Bryce
on 2 Feb 2012
Hmmm, description is a little confusing. Is length(x) always = length(y)? Are they nx1 or 1xn? Anyhow, I submitted several possible solutions (e.g. z = x'*y, z = sum(x.*y)) all of which failed the test suite ... but they work fine on my machine!
David Young
on 3 Feb 2012
Note that the output variable in the pattern is y, not z.
Stephen
on 1 Mar 2012
ha, yeah. thanks for commenting about that. I didn't see it either.
Suggested Problems
-
1937 Solvers
-
1681 Solvers
-
Check if number exists in vector
12260 Solvers
-
487 Solvers
-
806 Solvers
More from this Author100
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!