This is what I have written, and I am getting an error as follows:
Not enough input arguments.
Error in calculateDistance (line 4)
d = sqrt((x2 - x1)^2 + (y2 - y1)^2);
Please can someone help me resolve this issue.
Thanks.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!