Great video, can you please make a video about drawing more than two circles in simulink using 'draw shapes' tool. Or any related methods to draw more circle in one plot in simulink with out calling to workspace.
I have a project assignment(Two players, A and B, play a game called Eights. They take it in turns to choose a number 1, 2 or 3, which may not be the same as the last number chosen (so if A starts with 2, B may only choose 1 or 3 at the next move). A start and may choose any of the three numbers for the first move. After each move, the number chosen is added to a common running total. If the total reaches 8 exactly, the player whose turn it was wins the game. If a player causes the total to go over 8, the other player wins. For example, suppose A starts with 1 (total 1), B chooses 2 (total 3), A chooses 1 (total 4) and B chooses 2 (total 6). A would like to play 2 now, to win, but he can’t because B cunningly played it on the last move, so A chooses 1 (total 7). This is even smarter, because B is forced to play 2 or 3, making the total go over 8 and thereby losing. Write a script to simulate each player’s chances of winning if they always play at random). Could you help pleaseee??
Very interesting game logic. Yes, definitely this can be implemented. It is a very specific use-case so, we will not have any ready-made video for this. But let us know the help needed from our end. For reference, the complete source code shown in this tutorial is also shared in the below link: programmerworld.co/matlab/design-a-simple-game-in-matlab-using-app-designer/ Cheers Programmer World programmerworld.co -
Hello Saquib, I have shown the use of knob in one of my videos (about sound modulation in MATLAB): th-cam.com/video/4ETRfU1jUPg/w-d-xo.html However, I will prepare more video showing plotting with various widgets of App Designer and will let you know. Thanks.
In case you still need to refer to the demo of knob, slider and gauge and plotting in UIAxes, I have created one video for the same. You can refer to it in my channel or at: th-cam.com/video/38Xo1JemqIw/w-d-xo.html
Hi there, I have a Matlab script the output of which should be plotted on GUI pane rather than on a separate MATLAB figure tab. For running or calling the script, I am using inbuilt evalin function. However, It is still plotting on separate MATLAB figure tab. After figuring out the problem, I brought the same script in MATLAB App Designer environment by including the app function. Still it's not working out. Can you please enlighten me on this.
I think you can refer to my below video to see how to plot on the GUI axes: th-cam.com/video/ThS6xllOy9Y/w-d-xo.html th-cam.com/video/38Xo1JemqIw/w-d-xo.html You can also refer to the below video: th-cam.com/video/1Jzg0Ze-Ci4/w-d-xo.html Source code: programmerworld.co/matlab/machine-learning-algorithm-polynomial-regression-in-matlab-app-designer-r2018a/ Cheers Programmer World programmerworld.co -
hello, Can I know how to stop the game ? I have given a score for the pictures I made. The time exactly doesn't stop at zero and instead it is one while decrementing. The score also keeps scoring before I can click start button basically etc
You can create a stop method in which you stop or pause the timer and make all the buttons invisible. Hence, the game will be stopped as no more buttons can be clicked and the final score will be displayed on the text box.
I have faced basically 2 problem. 1. Before pressing start button, when I press image button, the value 10 is taken by default, but that can't be happened 2. Please add one more button that's RESTART, after pressing restart button, everything Will be in same sequence, Please make another video of that
Thanks Sam for your suggestions. I will try to make the part-2 of this tutorial in which I will address your requirement. I will let you know once posted.
Can you please share your code which will help in understanding the issue. Also, I hope you have defined the below method in your code: function toggleButton(app) For reference, the complete source code shown in this video is also shared in the below link: programmerworld.co/matlab/design-a-simple-game-in-matlab-using-app-designer/ Cheers Programmer World programmerworld.co -
If possible please watch the video between 12.30 - 12.45 again. Ensure that you have subtracted the timer value by 1 as shown in the code at line number 3. The line of code should be: app.Label_2.Text = num2str(str2double(app.Label_2.Text) - 1); Please check.
Hi Sam, The complete code shown in this tutorial is shared in the below blog page: programmerworld362978165.wordpress.com/matlab/design-a-simple-game-in-matlab-using-app-designer/ Let me know if you are facing any issue in accessing it. Cheers!
@@samfisher3520 You can put your queries here in this comment section as it may help other as well. We all can learn by sharing the information. Alternatively you can reach out on my email ID: programmerworld1990 [@] gmail [dot] com. Cheers!
I think, the line of code written is: t.TimerFcn = @(~,thisEvent) toggleButton(app); This means that 'toggleButton' matlab function will be called based on the timer 't'.
Great video, can you please make a video about drawing more than two circles in simulink using 'draw shapes' tool. Or any related methods to draw more circle in one plot in simulink with out calling to workspace.
I think you can refer to my below video for your requirement:
th-cam.com/video/T8ydYoio3S0/w-d-xo.html
I hope this helps.
I have a project assignment(Two players, A and B, play a game called Eights. They take it in turns to choose a number 1, 2 or
3, which may not be the same as the last number chosen (so if A starts with 2, B may only choose
1 or 3 at the next move). A start and may choose any of the three numbers for the first move.
After each move, the number chosen is added to a common running total. If the total reaches 8
exactly, the player whose turn it was wins the game. If a player causes the total to go over 8, the
other player wins. For example, suppose A starts with 1 (total 1), B chooses 2 (total 3), A chooses
1 (total 4) and B chooses 2 (total 6). A would like to play 2 now, to win, but he can’t because B
cunningly played it on the last move, so A chooses 1 (total 7). This is even smarter, because B is
forced to play 2 or 3, making the total go over 8 and thereby losing. Write a script to simulate
each player’s chances of winning if they always play at random). Could you help pleaseee??
Very interesting game logic. Yes, definitely this can be implemented. It is a very specific use-case so, we will not have any ready-made video for this. But let us know the help needed from our end.
For reference, the complete source code shown in this tutorial is also shared in the below link:
programmerworld.co/matlab/design-a-simple-game-in-matlab-using-app-designer/
Cheers
Programmer World
programmerworld.co
-
Sir Can you please make a video on a game of Chance(To calculate probability) "Dice Roll" on matlab app designer. I have this project assignment.
Can you make videos on how to use knob, gauge, slider and plotting voltage on UIaxes. Thanks
Hello Saquib,
I have shown the use of knob in one of my videos (about sound modulation in MATLAB): th-cam.com/video/4ETRfU1jUPg/w-d-xo.html
However, I will prepare more video showing plotting with various widgets of App Designer and will let you know.
Thanks.
In case you still need to refer to the demo of knob, slider and gauge and plotting in UIAxes, I have created one video for the same. You can refer to it in my channel or at: th-cam.com/video/38Xo1JemqIw/w-d-xo.html
Programmer World thank you soo much
very useful. I have requested for complete code. Thanks
Access given.
Good Luck
Programmer World
programmerworld.co
-
@@ProgrammerWorld Thanks a lot
@@ProgrammerWorld Sir, I need few more things. a) How can I store the results of the task in a xl sheet.
@@balabattu762 My below video may help you:
th-cam.com/video/P6LycAJmw3M/w-d-xo.html
Cheers
Programmer World
programmerworld.co
-
Hi there,
I have a Matlab script the output of which should be plotted on GUI pane rather than on a separate MATLAB figure tab. For running or calling the script, I am using inbuilt evalin function. However, It is still plotting on separate MATLAB figure tab.
After figuring out the problem, I brought the same script in MATLAB App Designer environment by including the app function. Still it's not working out. Can you please enlighten me on this.
I think you can refer to my below video to see how to plot on the GUI axes:
th-cam.com/video/ThS6xllOy9Y/w-d-xo.html
th-cam.com/video/38Xo1JemqIw/w-d-xo.html
You can also refer to the below video:
th-cam.com/video/1Jzg0Ze-Ci4/w-d-xo.html
Source code:
programmerworld.co/matlab/machine-learning-algorithm-polynomial-regression-in-matlab-app-designer-r2018a/
Cheers
Programmer World
programmerworld.co
-
hello, Can I know how to stop the game ? I have given a score for the pictures I made. The time exactly doesn't stop at zero and instead it is one while decrementing. The score also keeps scoring before I can click start button basically etc
You can create a stop method in which you stop or pause the timer and make all the buttons invisible. Hence, the game will be stopped as no more buttons can be clicked and the final score will be displayed on the text box.
I have faced basically 2 problem.
1. Before pressing start button, when I press image button, the value 10 is taken by default, but that can't be happened
2. Please add one more button that's RESTART,
after pressing restart button, everything Will be in same sequence,
Please make another video of that
Thanks Sam for your suggestions. I will try to make the part-2 of this tutorial in which I will address your requirement. I will let you know once posted.
@@ProgrammerWorld thanks
For your requirement, you can refer to the below video:
th-cam.com/video/EHK7-PFonE0/w-d-xo.html
Cheers!
getting error like togglebutton is undefined....In command window line 3
Can you please share your code which will help in understanding the issue.
Also, I hope you have defined the below method in your code:
function toggleButton(app)
For reference, the complete source code shown in this video is also shared in the below link:
programmerworld.co/matlab/design-a-simple-game-in-matlab-using-app-designer/
Cheers
Programmer World
programmerworld.co
-
time isnt decrementing .. what would be the problem?
If possible please watch the video between 12.30 - 12.45 again. Ensure that you have subtracted the timer value by 1 as shown in the code at line number 3.
The line of code should be:
app.Label_2.Text = num2str(str2double(app.Label_2.Text) - 1);
Please check.
Please give me the program line for restart and highest score function.. Please sir
Hi Sam,
The complete code shown in this tutorial is shared in the below blog page:
programmerworld362978165.wordpress.com/matlab/design-a-simple-game-in-matlab-using-app-designer/
Let me know if you are facing any issue in accessing it.
Cheers!
@@ProgrammerWorld can I get your calling number, that's More important, please sir
@@samfisher3520 You can put your queries here in this comment section as it may help other as well. We all can learn by sharing the information.
Alternatively you can reach out on my email ID: programmerworld1990 [@] gmail [dot] com.
Cheers!
Thanks
welcome :-)
in t.TimerFcn =@( ,thisEvent) what is written
I think, the line of code written is:
t.TimerFcn = @(~,thisEvent) toggleButton(app);
This means that 'toggleButton' matlab function will be called based on the timer 't'.