length_opti(x1,y1,x​2,y2)

The minimum distance betweeen two points (x,y) based on Hamilton's function

You are now following this Submission

>> A = length_opti(1,2,3,-5)
A =
1.0000 -1.5000

arguments: (input)
x1: the first ordinate of the first point.
y1: the second ordinate of the first point.
x2: the first ordinate of the second point.
y2: the second ordinate of the second point.

arguments: (output)
opt - The minimum ordinate of the desired point.

Cite As

Alireza Shourangiz Haghighi (2026). length_opti(x1,y1,x2,y2) (https://se.mathworks.com/matlabcentral/fileexchange/53660-length_opti-x1-y1-x2-y2), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: K-Fold Cross Validation

Categories

Find more on Create Courses and Assessment Items in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0