{"id":2180,"date":"2008-04-17T11:39:24","date_gmt":"2008-04-17T16:39:24","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2008\/04\/17\/advanced-matlab-handles-and-other-inputs-to-guide-callbacks\/"},"modified":"2016-05-18T11:31:11","modified_gmt":"2016-05-18T15:31:11","slug":"advanced-matlab-handles-and-other-inputs-to-guide-callbacks","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2008\/04\/17\/advanced-matlab-handles-and-other-inputs-to-guide-callbacks\/","title":{"rendered":"Advanced MATLAB: Handles and other inputs to GUIDE callbacks"},"content":{"rendered":"<p>There are three inputs to every automatically generated callback from GUIDE:<\/p>\n<p><code>function edit1_Callback(hObject, eventdata, handles)<\/code><\/p>\n<p>A common question that I am asked is &#8220;What is the handles structure?&#8221; This four minute video will show a simple GUI where you edit some text, and press a button that will copy that text into a third uicontrol. This is all done using the handles structure. The other two inputs: <em>hObject<\/em> and <em>eventdata<\/em> will be briefly discussed also.<\/p>\n<p><embed src=\"https:\/\/blogs.mathworks.com\/images\/pick\/\/FlashVideos\/FlowPlayer.swf?config=%7Bembedded%3Atrue%2CplayList%3A%5B%7BsuggestedClipsInfoUrl%3A%2785%20see%20also%2Etxt%27%2Curl%3A%2785%20Advanced%20Handles%20structure%2Eflv%27%7D%5D%2CbaseURL%3A%27http%3A%2F%2Fblogs%2Emathworks%2Ecom%2Fimages%2Fpick%2FFlashVideos%2F%27%2CsplashImageFile%3A%2785%20Advanced%20Handles%20structure%2Ejpg%27%2Cloop%3Afalse%2CinitialScale%3A%27fit%27%2CshowFullScreenButton%3Afalse%2CautoBuffering%3Afalse%2CmenuItems%3A%5Bfalse%2Cfalse%2Cfalse%2Cfalse%2Cfalse%2Ctrue%5D%2CautoPlay%3Afalse%7D\" type=\"application\/x-shockwave-flash\" width=\"500\" height=\"400\"><\/embed><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are three inputs to every automatically generated callback from GUIDE:<br \/>\nfunction edit1_Callback(hObject, eventdata, handles)<br \/>\nA common question that I am asked is &#8220;What is the handles&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2008\/04\/17\/advanced-matlab-handles-and-other-inputs-to-guide-callbacks\/\">read more >><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,12,8,2],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2180"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2180"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2180\/revisions"}],"predecessor-version":[{"id":7349,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2180\/revisions\/7349"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}