Matlab交互编程——数据的导入与导出
在工程计算中,常常需要在图形界面下进行数据的相关操作。下面我们以一个简单的例子来说明如何在 MATLAB App Designer 下实现数据的导入与导出。
实现效果:

核心代码:


实现过程:
1. 打开App Designer,拖拽绘制下图所示的控件:


2. 设置私有属性DataTable,用于保存导入的table表数据

3. 添加Startup 回调

4. 编辑“导入数据”按钮回调函数:

5. 编辑“导出数据”按钮回调函数:

6. 保存并运行。
点赞 14 评论 5 收藏
查看更多评论 >