Renaming a model from explorer or MATLAB folder

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.

답변 (1개)

TAB
TAB 2012년 6월 29일
편집: TAB 2012년 6월 29일

0 개 추천

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

Well, too bad :(
I already added a menu item to the Simulink model as you suggested in another post I made and did all I wanted in an m-file.
I was asked to find a way to do that when the file is renamed from windows also and the solution to be in MATLAB not in another language.
Thanks for the info.
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 2012년 7월 26일
OK, Great !!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

질문:

2012년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by