Making a GUI for a trivia game

조회 수: 13 (최근 30일)
Patrick Carroll
Patrick Carroll 2020년 4월 13일
답변: Rajani Mishra 2020년 4월 16일
Hi, I am trying to make a GUI for a trivia game I am designing, but I have no idea where to start. All I need to do is have the GUI run alongside my code, and display the questions and answers. I already have the strings for the questions and answers, just need to have a GUI update with those strings in my matlab file.
  댓글 수: 3
Patrick Carroll
Patrick Carroll 2020년 4월 14일
The user won't interact with the GUI. I am controlling the program via an Arduino interface. I have no exact specifications of how it needs to look like. After some more research I did, all I need to figure out is how to immediately update static text.
Geoff Hayes
Geoff Hayes 2020년 4월 14일
Are you writing your GUI using GUIDE, App Designer, or programmatically?

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

채택된 답변

Rajani Mishra
Rajani Mishra 2020년 4월 16일
You can create apps interactively using the App Designer. This provides Design view and Code view for easy development of app. Design view can be used to design the UI componets of the app, you can add Text Area for displaying questions and answers and a Next Button to go to next question. You can have callbacks associated with the next button to call MATLAB code for displaying the next question. Code view helps in managing the code of these callbacks.
Refer to this for learning how to create apps using App Designer: https://www.mathworks.com/help/matlab/app-designer.html

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by