Euclidean Distance

Calculates euclidean distance between two vectors.
601 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 (2026). 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
Version Published Release Notes
1.0.0.0