Code in GUI doesn't continue after running .m file

조회 수: 1 (최근 30일)
Lisa Restel
Lisa Restel 2019년 12월 26일
답변: Shubh Sahu 2019년 12월 30일
Hi everyone! I'm pretty new to Matlab and have a problem with my GUI using app desiner. I run a .m file after pushing a button,which works fine, but the code in appdesigner doesn't seem to continue afterwards (display table from generated .mat file). When commenting out "run myfile.m" the rest of the code works fine. Any ideas what I did wrong?
  댓글 수: 6
Lisa Restel
Lisa Restel 2019년 12월 27일
Tried placing it in the GUI but now it won't work but I don't get any error messages... :/ Other ideas maybe?
Lisa Restel
Lisa Restel 2019년 12월 28일
Update: solved the problem by placing the code to enable a button I wanted to enable after 'run myFile.m' before it. Not sure why but the button is enabled after running the code :D

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

답변 (1개)

Shubh Sahu
Shubh Sahu 2019년 12월 30일
Hello,
I think you need to add 'table' in your GUI (assuming you haven't added 'table' or haven't used 'uitable'). Write your myFile.m under callback of push button and pass that result to callback of 'table' show that desired table can be visible in GUI.
Please refer these to links :

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by