Im trying to use different variables from my script in different GUI elements in my app.
I have no idea how to do that and would be thankful if someone can help
for example I want the scoreM Variable to be displayed in an EditText field und the seperate values from the indexes of the vector would like them to be displayed seperately in other seperate EditText fields. I also would like to change the boolean variable wurfelAkzeptiert when I click a button from false to true.
Ive read that I shoud use functions to pass those variables to the GUI but I honestly have no idea how to do that. Ive been working with Matlab only for the past 2 months and now I have to programm a dice game and im finished but cant connect the logic from my code to the GUI.
Any kind of advice, short, long or excessively detailed will be much appreciated.
wuVekM(j) = randi(6);
mWAuge1 = wuVekM(1);
mWAuge2 = wuVekM(2);
mWAuge3 = wuVekM(3);
if(wurfelAkzeptiert && (mDran) || wurf == 3)
scoreM = sum(wuVekM);