|
Written by Brad Phelan
|
|
Tuesday, 12 April 2005 |
|
After a thread on CSSM about tree controls I thought I'd write up the ideas into a more readable article. The solution involved some java, lots of nested functions and some undocumented matlab features. The tree was intended to view a directory hierarchy and allows selection and deselection of files by clicking on the file name. A new property also had to be added to the tree control to return the list of selected directories. The tree control must also support multiple instances existing in the same workspace and user interface. The first thing to do was to write a test script that drives the desired functionality. The below function called two views adds two directory_viewer controls to a new figure. It also adds two buttons. When the button is pressed the list of selected files from the tree control will be displayed. |
|
Last Updated ( Friday, 22 April 2005 )
|
|
Read more...
|
|
|
Written by Brad Phelan
|
|
Monday, 11 April 2005 |
|
Using Guide With Nested Functions Guide is a usefull tool for creating user interfaces within Matlab. However the structure of the generated code is somewhat messy. Matlab R14 introduced nested functions. Nested functions make programming guis much easier and dare I say more fun than the traditional way. The article describes how to construct a Guide based gui using the power of nested functions. The fig file and m file associated with this article are attached in timergui.zip. Read the rest of the article for more details .... |
|
Last Updated ( Friday, 22 April 2005 )
|
|
Read more...
|
|
|
<< Start < Prev 1 2 Next > End >>
|
| Results 10 - 11 of 11 |