getCosineSimilarity​(x,y)

Compute cosine similarity between vectors 'x' and 'y'
1.4K Downloads
Updated 16 May 2017

View License

call:

Cs = getCosineSimilarity(x,y)

Compute Cosine Similarity between vectors x and y.
x and y have to be of same length. The interpretation of
cosine similarity is analogous to that of a Pearson Correlation

Cite As

Ruggero G. Bettinardi (2024). getCosineSimilarity(x,y) (https://www.mathworks.com/matlabcentral/fileexchange/62978-getcosinesimilarity-x-y), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Test and Measurement in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0