Filter löschen
Filter löschen

Renaming a model from explorer or MATLAB folder

1 Ansicht (letzte 30 Tage)
Adrian Dronca
Adrian Dronca am 29 Jun. 2012
Hello all,
I want to know when a user renames a model with F2, either from windows explorer or from MATLAB Current Folder, if there is a Callback called and how to catch or overwrite it.
I`m asking this because when I rename my models I want some data to be saved in a file.
I do not want the model to be opened.
I hope my question is clear.
Thanks in advance,
Adrian.

Antworten (1)

TAB
TAB am 29 Jun. 2012
Bearbeitet: TAB am 29 Jun. 2012
AFAIK, it is not possible to handle the model file rename event or callback in the matlab when file is renamed from or outside matlab.
What you can do is, design your own GUI (or write a function) in matlab to rename the model file.
In the GUI/Function, you can save your data or do your operation.
  3 Kommentare
Adrian Dronca
Adrian Dronca am 3 Jul. 2012
I found a way of catching the callback when a file is renamed or changed by using .NET in MATLAB.
Pretty interesting I may add.
The only problem is that is takes huge amount of RAM memory.
TAB
TAB am 26 Jul. 2012
OK, Great !!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by