这是自带的演示Tree控件的案例。
其中显示表格信息是自带案例,这里只是把代码稍作修改根据 Excel 的信息添加最上层的节点而不是在设计区写死。
另外演示单层级文件夹,双层级文件夹,不定层级文件夹。不要用复杂的,用适合自己的。
说明参见:
https://zhuanlan.zhihu.com/p/689495593
Cite As
MBD柚子 (2026). 如何使用MATLAB APP Designer 的 Tree 控件 (https://www.mathworks.com/matlabcentral/fileexchange/161896-matlab-app-designer-tree), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
