Тёмный

Matlab GUI (without GUIDE) 1.2 - Callback functions 

David Dorran
Подписаться 19 тыс.
Просмотров 56 тыс.
50% 1

Third of four videos introducing GUI development in matlab. This video deals with callback functions and how to set them up to interact with objects on the GUI.
Code: dadorran.wordpress.com/2014/01...
First Video: GUI Layout • Matlab GUI (without GU...
Second Video: Object Handles and Manipulation • Matlab GUI (without GU...
Fourth Video: Finishing Touches • Matlab GUI (without GU...

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

 

15 янв 2014

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@JA-yi8bs
@JA-yi8bs 6 лет назад
Great video - couldn't have explained it more simply! Made it very easy to follow and understand --> taught me more in 3 videos than my lecturer did in a semester!
@dennisou2
@dennisou2 10 лет назад
This series is excellent. Everything is well explained and intuitive. Thanks for the videos!
@ChanchalDass
@ChanchalDass 10 лет назад
I agree
@FlyingPolak
@FlyingPolak 7 лет назад
Very helpful. Thank you for making these tutorials. Currently trying to construct a final project program for my EGR115 course.
@quirozarte
@quirozarte 8 лет назад
Very, very useful!!! Thank you!
@markuscwatson
@markuscwatson 10 лет назад
excellent three-video series! you should make more matlab gui example videos!
@lazarosssssss7
@lazarosssssss7 9 лет назад
Thank you very much for your videos!
@MrDp9000
@MrDp9000 8 лет назад
Hello David... Very nice work.. thank you for such useful tutorial...
@Dmetal23
@Dmetal23 6 лет назад
tanks for teh fookin video laddy, very helpful
@ramyahemmanna2147
@ramyahemmanna2147 8 лет назад
Can you please guide me how o create the gui to acquire the data form the optical spectrum analyser over tcpip protocol?
@AndriusKamarauskas
@AndriusKamarauskas 8 лет назад
would apreciate if you make same totorial with Matlab R2015b
@koshadholakia7325
@koshadholakia7325 9 лет назад
I have a structure of handles of all the components in my GUI. This handle structure is used in different callbacks. In a particular push button callback, I create yet another button. (pushing a button creates a button), and I include the new button's handle in the handle structure. But since this new button was created within a callback, the main handle structure does not get updated and I cannot use the handle of the newly created button any place else. Please help.
@davidrichard1744
@davidrichard1744 9 лет назад
Hello. Thank you so very much for sharing you knowledge this approach. I am quite new to matlab but I wonder about eg_fun, does it has to be writen in a file eg_fun.m or can it be included in the same file as everything els?
@ddorran
@ddorran 9 лет назад
This won't make a lot of sense if you don't know the difference between a matlab script and a function, so look that up first! eg_fun is a function and it can included in a different file if that file is also a function. However a matlab script cannot contain function code.
@guyrosenzweig7737
@guyrosenzweig7737 10 лет назад
Hi. Great series, really helps getting started. I'm really struggling with something: is there a way to automatically run a function after the GUI is created? Like the "opening function" of a GUIDE-built GUI? If I just call the function at the end of the script, the GUI isn't built yet and when the function plots, a new figure is created.
@ddorran
@ddorran 10 лет назад
I don't think I fully understand your question as I can't see the problem with calling the function after the GUI has been built. Having said that maybe the GUI hasn't been "drawn" and you could try using the drawnow() function just before you call your function. If you post your code I'll take a look. Also if you have GUIDE code that is working there's no reason why you couldn't hack out the code that seems to do the job for you.
@guyrosenzweig7737
@guyrosenzweig7737 10 лет назад
David Dorran Thank you for your reply. I think I found and solved the problem. I had handles.window = figure(...,'HandleVisibility','callback') for my main figure and axes, so the function could not use them. I removed those options, ran the function I want and then set the options again using set(handles.window,'HandleVisibility','callback'); This solved the problem. Thanks again for a great intro.
@thatnoob4242
@thatnoob4242 6 лет назад
When I run the program, an error says too many output arguments. what shall I do?
@guyrosenzweig7737
@guyrosenzweig7737 10 лет назад
Now I have another issue. I wrote a code which starts with a function creating the GUI. It has the main figure, two axes and a bunch of uicontrols. Each element has a handle which is named handles.element. Before the build function ends, the handles structure contains all fields, but when I later push a button (using debug mode) I see the handles only has 3 fields left (the main window and the two exes). It doesn't matter if I nest the callback functions or not, and it doesn't matter if I use guidata or not. Any thoughts? PLEASE?
@ddorran
@ddorran 10 лет назад
post your code and I'll take a look
@koshadholakia7325
@koshadholakia7325 9 лет назад
Why do we need to have input argument 'event' in the function that is being called back?
@ddorran
@ddorran 9 лет назад
I think it has to do with being able to differentiate between the types of event that can occur - for example was a button pressed but not released, etc. I'm not sure about this though.
@burhanturkoglu8156
@burhanturkoglu8156 5 лет назад
How ı can create ardunio using wih uicontrol
@MrDp9000
@MrDp9000 8 лет назад
What if I want to toggle the color of ellipse every second automatically. Just like flashing LED with time period of 1 sec...
@ddorran
@ddorran 8 лет назад
You could use a timer function. See uk.mathworks.com/help/matlab/ref/timer-class.html
@MrDp9000
@MrDp9000 8 лет назад
i am amking gui with guide ... and using static text box to display clock
Далее
Matlab GUI (without GUIDE) 1.1 - Handles to Objects
11:37
Matlab GUI (without GUIDE) 1.0 - GUI Layout
11:55
Просмотров 25 тыс.
Как вам наш дуэт?❤️
00:37
Просмотров 422 тыс.
Matlab GUI (without GUIDE) 1.3 -  Finishing Touches
8:26
Java Is Better Than Rust
42:14
Просмотров 150 тыс.
DFT in Practice  - Frequency Resolution Issues
25:15
Просмотров 32 тыс.
Matlab GUI Callback Functions
5:40
Просмотров 54 тыс.
Checkboxes and Radio Buttons in MATLAB
13:45
Просмотров 87 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 389 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 343 тыс.
MATLAB Tutorials - CREATING GUI
8:24
Просмотров 170 тыс.