'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.
Ashok Kumar Pant (2020). Euclidean Distance (https://www.mathworks.com/matlabcentral/fileexchange/44870-euclidean-distance), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!