How do I create a GUI for adminstering a 10 question, 4-alternative multiple choice test? (Addition, Subtraction, and Multiplication)

4 vues (au cours des 30 derniers jours)
I need to create a GUI that uses the digits 1 through 9 to randomly generate math questions (using addition, subtraction, or multiplication for each question) and alternatives (while randomly shuffling the alternatives for each question). I also need to keep track of the user's performance so that it can be saved as a variable at the end of the exam. The GUI should include a figure window, static text box for the question, radio buttons for the alternatives, a push button that moves to the next question, and a static text box showing how many questions are remaining.
Attached is what I have so far. I am new to creating GUI's so what I am struggling with is creating the missing code that will enable this to work like it is supposed to.
  1 commentaire
Walter Roberson
Walter Roberson le 28 Nov 2016
Your code cannot work unless you replace the
if True
with a function header. If you do that, then you would be able to use nested functions and shared variables such as nAlternatives .

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 28 Nov 2016
See GUIDE Tutorial or you can use the new App Designer.

Community Treasure Hunt

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

Start Hunting!

Translated by