Find cosine between two given vectors u and v.
Example
u = [5 2 0 5 3 0]; v = [3 2 5 1 0 2];
result = 0.4611;
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers59
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2060 Solvers
-
Return unique values without sorting
1022 Solvers
-
Sum the numbers on the main diagonal
620 Solvers
-
5946 Solvers
-
Let's get back to school, and create multiplication tables
243 Solvers
More from this Author37
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!