getCosineSimilarity​(x,y)

Compute cosine similarity between vectors 'x' and 'y'

You are now following this Submission

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 (2026). getCosineSimilarity(x,y) (https://www.mathworks.com/matlabcentral/fileexchange/62978-getcosinesimilarity-x-y), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0