这是自带的演示Tree控件的案例。
其中显示表格信息是自带案例,这里只是把代码稍作修改根据 Excel 的信息添加最上层的节点而不是在设计区写死。
另外演示单层级文件夹,双层级文件夹,不定层级文件夹。不要用复杂的,用适合自己的。
说明参见:
https://zhuanlan.zhihu.com/p/689495593
Citar como
MBD柚子 (2025). 如何使用MATLAB APP Designer 的 Tree 控件 (https://www.mathworks.com/matlabcentral/fileexchange/161896-matlab-app-designer-tree), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2024a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.