LinkedList provides for doubly and multiple linked lists
Version 1.0.0 (15.8 KB) by
Jeffrey Clark
Dlnode and Mdlnode classes enhance: https://www.mathworks.com/help/matlab/matlab_oop/example-implementing-linked-lists.html#brik0u3
The LinkedList.Dlnode class is based on the MATLAB documentation example for using handles to implement forward and backward linked nodes. The Mdlnode class takes this further by allowing the same node to be placed in multiple linked lists at the same time. In addition, methods to support additional functionality and to simplify application usage have been added to both classes while keeping the same method signatures.
The LinkedList package uses the FormattedData package for its delault 'disp' method to display nodes and chains. Use either Dlnode or Mdlnode as a superclass to your class to override this capability. Note that although neither Dlnode or Mdlnode are abstract it is likely you will use it as a superclass to define properties and additional methods anyway.
Cite As
Jeffrey Clark (2025). LinkedList provides for doubly and multiple linked lists (https://www.mathworks.com/matlabcentral/fileexchange/109414-linkedlist-provides-for-doubly-and-multiple-linked-lists), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2021b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
+LinkedList
+LinkedList/test
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |