Download the current version of this Tic Tac Toe game GUI with updated images and beginning of PvC gameplay: www.mathworks.com/matlabcentral/fileexchange/110100-tic-tac-toe-game-gui-without-guide-pvp-or-pvc-option
Thank you! I appreciate your support and kind feedback! If you ever are looking for information you can't find, be sure to comment and let me know. I'm always adding new videos.
Hello, I'm trying to make an 'edit' button to take a user input, and then I want a button to appear when that 'edit' text button is not empty. However, whenever I run the code it says that my button is always empty. It seems it's not storing the value of the button, ever.
Did you download this code I posted? It may help to test it out. Here are some common errors: * Make sure the callback is after you define the uicontrol * Make sure the callback function has the uicontrol you defined as an input * Make sure the actual callback function has all your inputs (remember the first two are defaults: event and objects, so any additional ones you add are after) (you can also go the route of using the first input of the function) * Make sure you are using the get function or variable.string approach to collect the data you want I hope this helps. Please let me know if you have more questions.
I just want to say that I love your content. I am a beginner at Matlab, and coding tic-tac-toe just seems perfect for retaining knowledge through doing something fun. I do have a question regarding some of the code though. I don't know if I am using an older version of Matlab or not, but I am having problems with the PlayMode function. I have been thorough in checking your code verses mine and it looks the exact same, but my Matlab does not like it and will not proceed. Errors happen when we get to 'function PlayMode(object, ~, PvP, PvC)'. It says, "function definitions are not permitted in this context. " Matlab also says, that "PlayMode is undefined for input arguments of type 'matlab.ui.control.UIControl'," and "Error while evaluating UIControl Callback." What should I do? Please help if you can. Thank you!
Thank you! I'm so glad to hear! And I have provided the code itself through my MathWorks account: www.mathworks.com/matlabcentral/fileexchange/110100-tic-tac-toe-game-gui-without-guide-pvp-or-pvc-option?s_tid=prof_contriblnk. Have you tried downloading it to compare? For starters, when you started your code, did you do anything through GUIDE? Just want to make sure we can eliminate that potential problem. Is your function PlayMode in the same main script file as all your other code?
Thank you for the code to your Matlab account. I have one more question. When I used the "imresize" function, an error came up and said that it was not downloaded on my Matlab program. I was wondering if there is a way that I can resize the image without using the function resize or if there was a particular download on Matlab to be able to use that function?
@@tawnaherrera2438 I have never had a problem with that function or needed to download anything additional. What error are you getting? www.mathworks.com/help/matlab/ref/imresize.html
Is there a way to check if a figure is open, I’m coding a game for a school project and I am trying to figure out a way to close certain figures if they are open when a button is pressed. If I just do close (figurename) it only works if the figure is open. If it’s not then it gives me an error. I need a way to check if the figure is open first before closing so that I don’t get an error. Thank you
Hi! Thank you for the very clear question. I am thinking the exist function will help you with this. I'm going to test it right now and I'll get back to you with more info.
Im new at mathworks in the marketing division and I'm wondering if it's a good idea for me to promote your channel to see if there are collabs with you and mathworks. I think my manager would be impressed with my proactiveness
@@irshviralvideo you are welcome to reach out to me via email: dr.kelseyjoy@gmail.com. I have talked with Mathworks team before, but I am not local to their design team headquarters.
@@EngineeringwithDrKelseyJoy ok, is $5k USD per >3 min video something you would be interested in ? Since its a starter channel, its unlikely i can get you more than that. It would need approval from us and you are welcome to put a promoted content marker on the video too.