I used simpletab.m from MatlabCentral to make simple tabs in GUI Matlab, now I wanted to add another function so that the result of the added function is displayed when I press the GUI tab buttons.
For example I want to add a function to every tab, when I press "tab 1" that function output (in this case a graph) is displayed.
Update 1
THANKS FOR YOUR PROMPT REPLY. It worked good, but what if I don't want to the "Tab 1 function" to appear when I press the Tab button..straight away I want my graphs to be properly listed when I press tab 1 button.
Update 2
I have written the modified function that you told me but still I get the tab name 'Tab 1 function' when I press the tab 1 button.
Moreover I want two sub tabs to appear straight under the tab 1 button when I press the tab 1 button..one sub tab will display data on one graph for all sensors and one tab will display data on individual graphs.
Do I have to write two separate functions and two separate subcall functions for each sub tab?
I hope you have understood what I am trying to say. I'm really running out of time..:(..feeling lost