image thumbnail


version 1.0.0 (1.85 KB) by Adam Danz
Produce lines that interconnect all coordinates.


Updated 14 Nov 2019

View License

[xOut, yOut] = interconnections(x, y)
Given a set of x and y coordinates, this produces the matrix of x and y values needed to plot all interconnected lines by using plot(xOut, yOut).

[~, ~, h] = interconnections(x, y, true);
Draws all interconnected lines on the current axis and outputs the line object handles.

Cite As

Adam Danz (2021). interconnections (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!