Running code/ calling a function triggered by closing of a matlab program

I have a matlab program (with GUI) that uses contents of some file for initialization purposes. However it is important to me that upon closing the program, some specific value be written to my initialization file. How can I have a function to get called right when the user closes my program.
Thanks you for your help

1 件のコメント

per isakson
per isakson 2013 年 8 月 30 日
See: onCleanup, Cleanup tasks upon function completion

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

タグ

質問済み:

2013 年 8 月 30 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by