finding vector pair with min angle between them - MATLAB Cody - MATLAB Central

Problem 59721. finding vector pair with min angle between them

given a matrix with more than one row , compare row vectors of the given matrix and find the pair with the minumum angle between them , "without using the dot fucntion"
you can find the angle from the following formula
θ = cos-1 [ (a. b) / (|a| |b|) ]
the product between the two vectors is the dot product
ab=∑(ai​)*(bi) from i=1 to n
the length of a vector is the square root of the sum of the squares of the components

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on May 10, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers7

Suggested Problems

Problem Tags

Community Treasure Hunt

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

Start Hunting!