Fast retrieve line coordinates

Fast retrieve the (x,y) coordinates of a line, given the starting and ending points.

You are now following this Submission

function [x,y]=conect(Xstart,Xend,Ystart,Yend)
works the same as LINE(X,Y) but you can retrieve the coordinates of the line. It works for Xstart~=Xend.

Cite As

Alejandro Sanchez-Crespo (2026). Fast retrieve line coordinates (https://www.mathworks.com/matlabcentral/fileexchange/7126-fast-retrieve-line-coordinates), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Change the header for a standard one