Displaying a linked list as an array?
显示 更早的评论
How would I display a linked list as an array of the values of every node in the list, in the order of which the list traverses? Ok, so let's say I have list structure with list.root as the index of the first node in the list. Each node has a value and a next pointer, indicating the index of the next node in the list. How would I show every value within the list structure as a single array of values?
1 个评论
Jan
2013-3-4
There is a nearly infinite number of methods you could implement a linked list in Matlab. So how could we know the structure of your data? Please add any details by editing the question - not as answer or comment.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!