How do I mix a GUI with a code?

조회 수: 4 (최근 30일)
Samira Tamma
Samira Tamma 2022년 4월 25일
편집: Stephen23 2022년 4월 25일
Hello, I have designed a GUI for my project, and I have a separate code. I need help integrating them together. The GUI is designed in a way where it asks for a driving frequency, and the code should begin running to gather the data after entering a driving frequency. I have the GUI, and the code separately. I am not sure how I can mix them together though. I am new to MATLAB, so I am incredibly lost in that sense. I would appreciate any help. Thank you very much!
  댓글 수: 1
Stephen23
Stephen23 2022년 4월 25일
편집: Stephen23 2022년 4월 25일
"I am not sure how I can mix them together though."
Inside your GUI you can import the data (from file/s), process it by calling whatever functions you want (including your own), and then finally save the output data (to file). That is the very general answer to your very general question.
Don't panic. Take it one step at a time, for example where does the data come from? Inside your GUI you can add the functions that import your data, just like you would from inside any other function.
I recommend writing your own GUI following Rik's well-written advice given here:
Otherwise you can use the AppDesigner (which makes it simple at the beginning):

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by