Euclidean Distance

Calculates euclidean distance between two vectors.
591 Downloads
Updated 31 Dec 2013

View License

'z=mydist(w,p)' calculates euclidean distance between two vectors w:SxR and p:RxQ and returns z:SxQ,distances between w's rows and p's columns.

This function serve same as Matlab 'dist(w,p)' but requires far less memory to compute.

It can help to overcome 'Out of memory error' in larger data set training in neural network.

Cite As

Ashok Kumar Pant (2024). Euclidean Distance (https://www.mathworks.com/matlabcentral/fileexchange/44870-euclidean-distance), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

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