Effacer les filtres
Effacer les filtres

Regarding GUI/Simulink

1 vue (au cours des 30 derniers jours)
Sriharsha
Sriharsha le 2 Fév 2012
Hi,
I have a GUI in which there is an edit box in which i can type a name. I want to create a simulink model with the name i type in that edit box using GUI.
Can any one help me on this.
Regards Sriharsha S

Réponse acceptée

TAB
TAB le 2 Fév 2012
Call new_system() function in the callback of edit text
function edit1_Callback(hObject, eventdata, handles)
str = get(hObject,'String');
if ~isempty(str)
open_system(new_system(str));
end
After entering the model name in edit text, when you will hit the ENTER key, new model will get created and opened.

Plus de réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by