how to save data in uitable permanently
1 回表示 (過去 30 日間)
古いコメントを表示
I want to save data present in uitable permanently so that next time when I run gui again ,the previous data must be present(or unchanged) in same gui.
I even tried by switching off the gui visibility but it didn't work out.
Please assit me in achieving the desired result.
0 件のコメント
採用された回答
Walter Roberson
2016 年 1 月 19 日
If you are using GUIDE, you could savefig() on top of the existing .fig file, so that the next time the GUI is started, it would be a copy of what was saved.
I do not recommend this, but it is the only way of achieving "the previous data must be present(or unchanged) in same gui"
What I would recommend is that you get() the Data property of the uitable and save() it in a convenient file, and that in your Open callback for that uitable you check whether such a file exists and if it does find it then loads it into Data property of the uitable. The user will see the data because it will have been loaded to the table before the table becomes visible. The user experience is the same as what you asked, but this is not the same as the data already being present in the table when the GUI is started.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!