a1=intersectPts(i,1)a2=xLine(i,2)b1=intersectPts(i,2)b2=yLine(i,2) euclideanDistance = sqrt((a1-a2)^2+(b1-b2)^2);
error: Undefined operator '-' for input arguments of type 'cell'
intersectPts is 11×2 double.
xLine and yLine are 11×2 cell.
How to solve this?
Best Answer