MATLAB: Euclidean distance between two cell. euclidean distance between cell Hello, i have two cell. Z1={1×3}{1z3} Z2={1×3}{1×3}{1×3} i need euclidean distance between Z1 a Z2. can anyone help ? Thanks. Best Answer Thomas, usepdist([reshape(cell2mat(Z1),2,3); reshape(cell2mat(Z2),3,3)])assumming that Z1 contains two cells of 1-by-3's, and Z2 contains three cells of 1-by-3's. Related SolutionsMATLAB: How to concatenate the cell array that contain these table load X1.mat ;load X2.mat ;load X3.mat ;load Y1.mat ;load Y2.mat ;load Y3.mat ;load Z1.mat ;load Z2.mat ;load Z3.mat ;cell_N1 = [X1 ; Y1 ; Z1] ;cell_N2 = [X2 ; Y2 ; Z2] ;cell_N3 = [X3 ; Y3 ; Z3] ; MATLAB: How to find the distance between vectors given in a cell array You can apply pdist() like thisp = {[x1, y1], [x2, y2], [x3, y3]};P = vertcat(P{:});D = pdist(P); Related QuestionHow to have a transposedHow to properly sum 3D matrixesI want to use plotHow to solve the two equations numerically in which tabular data is also to be loadedHow can i find the position of a number in a cell consisting of arrays/matrices with different sizes
Best Answer