How to link gui push button with the matlab code m files.
이전 댓글 표시
how to link gui push button with the matlab codes in m files.
답변 (1개)
Adam
2014년 11월 12일
0 개 추천
Just call your m-file in the push button callback.
If that isn't enough information try giving more information in your question!
댓글 수: 2
zionna
2014년 11월 12일
Adam
2014년 11월 12일
In a callback you can store data on the handles structure so, for example your filename coming back from a browse instruction (e.g. a uigetfile) in your browse button callback:
handles.filename = uigetfile;
guidata( hObject, handes );
Then in your other callback you can access that file by simply
handles.filename
e.g.
fread( handles.filename,... )
or whatever instruction you want. Then call your m-file to do whatever you want. If you want to store anything else in your GUI use handles as in the example above.
카테고리
도움말 센터 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!