Тёмный
No video :(

MATLAB GUI w/o GUIDE: figure, uicontrol, push buttons, edit boxes, callbacks, and more 

Engineering with Dr. Kelsey Joy
Подписаться 2,2 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 года назад
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
@vinayak186f3
@vinayak186f3 2 года назад
Thanks for the amazing content 😄
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 года назад
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.
@K2NOISE
@K2NOISE Год назад
Boiler Up!!! :)
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy Год назад
Heck yes!!! Boiler up! ☺️
@juliettejimenez39
@juliettejimenez39 2 года назад
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.
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 года назад
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.
@tawnaherrera2438
@tawnaherrera2438 3 месяца назад
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!
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 3 месяца назад
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?
@tawnaherrera2438
@tawnaherrera2438 3 месяца назад
If you would like, I could screenshot my code and email it to you if that would be easiest?
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 3 месяца назад
@@tawnaherrera2438 I can take a look at it. Did you try downloading my version as well?
@tawnaherrera2438
@tawnaherrera2438 3 месяца назад
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?
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 3 месяца назад
@@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
@tamizhan9606
@tamizhan9606 2 года назад
Great
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 года назад
Thank you! Please let me know if you have any questions or if you're looking for other content I haven't posted yet.
@portisdead
@portisdead Год назад
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
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy Год назад
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.
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy Год назад
Correction: ishandle() is the function you can use for this
@portisdead
@portisdead Год назад
@@EngineeringwithDrKelseyJoy thank you so much!
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy Год назад
@@portisdead you're welcome. I have more details for you. Posting now...
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy Год назад
Here is a detailed example explaining a solution for you :) Thank you again for your comment! ru-vid.comsAbPsfDnOLY?feature=share
@irshviralvideo
@irshviralvideo 2 года назад
Is this sponsored by Matlab ? Would you like to be sponsored ?
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 года назад
No. I'm not sponsored by MATLAB, but I taught MATLAB to engineering students at a university for 5 years. I'm glad you enjoyed it. Thank you.
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 года назад
If you have requests for future videos, please let me know.
@irshviralvideo
@irshviralvideo 2 года назад
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
@EngineeringwithDrKelseyJoy
@EngineeringwithDrKelseyJoy 2 года назад
@@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.
@irshviralvideo
@irshviralvideo 2 года назад
@@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.
Далее
Power Apps Model Driven Apps FULL COURSE for Beginners
3:23:34
Creating Movies and Animations in Matlab
27:01
Просмотров 114 тыс.
Introduction to MATLAB Report Generator
26:38
Просмотров 20 тыс.
Modern Graphical User Interfaces in Python
11:12
Просмотров 1,5 млн
How to Build a GUI in MATLAB using App Designer
10:26
Просмотров 189 тыс.