Unable to see uifigure object properties
Hi,
I’m very new to Matlab, I’m basically learning as I go. At the moment I’m working on getting a callback function for a group of two radio buttons to work. The aim of the buttons is to switch between a line graph and a bar graph. The buttons are created fine, and open in the figure but I can’t see the properties.
My script:
chartSwitchGroup = uibuttongroup(tab, ‘Position’, [30, screenSize(4) – 330, 1220, 40],’BorderType’,’none’);
rbLine = uiradiobutton(chartSwitchGroup, ‘Text’, ‘Line Graph’, ‘Position’, [10, 5, 105, 30], ‘Value’, true, ‘FontSize’,16);
rbBar = uiradiobutton(chartSwitchGroup, ‘Text’, ‘Bar Chart’, ‘Position’, [115, 5, 125, 30], ‘FontSize’,16);
rbBar
rbLine
Command window:
I’m just trying to see the properties, basically so I can see what they are and learn more but even when leaving the figure open, I still get the ‘no longer exists message’
rbBar =
RadioButton (Bar Chart) with properties:
Value: 0
Text: ‘Bar Chart’
Position: [115 5 125 30]
Show all properties
rbLine =
RadioButton (Line Graph) with properties:
Value: 1
Text: ‘Line Graph’
Position: [10 5 105 30]
Show all properties
Unable to display properties for variable rbLine because it no longer exists.
**EDIT: More intense googling suggests this could be something to do with nested functions? **Hi,
I’m very new to Matlab, I’m basically learning as I go. At the moment I’m working on getting a callback function for a group of two radio buttons to work. The aim of the buttons is to switch between a line graph and a bar graph. The buttons are created fine, and open in the figure but I can’t see the properties.
My script:
chartSwitchGroup = uibuttongroup(tab, ‘Position’, [30, screenSize(4) – 330, 1220, 40],’BorderType’,’none’);
rbLine = uiradiobutton(chartSwitchGroup, ‘Text’, ‘Line Graph’, ‘Position’, [10, 5, 105, 30], ‘Value’, true, ‘FontSize’,16);
rbBar = uiradiobutton(chartSwitchGroup, ‘Text’, ‘Bar Chart’, ‘Position’, [115, 5, 125, 30], ‘FontSize’,16);
rbBar
rbLine
Command window:
I’m just trying to see the properties, basically so I can see what they are and learn more but even when leaving the figure open, I still get the ‘no longer exists message’
rbBar =
RadioButton (Bar Chart) with properties:
Value: 0
Text: ‘Bar Chart’
Position: [115 5 125 30]
Show all properties
rbLine =
RadioButton (Line Graph) with properties:
Value: 1
Text: ‘Line Graph’
Position: [10 5 105 30]
Show all properties
Unable to display properties for variable rbLine because it no longer exists.
**EDIT: More intense googling suggests this could be something to do with nested functions? ** Hi,
I’m very new to Matlab, I’m basically learning as I go. At the moment I’m working on getting a callback function for a group of two radio buttons to work. The aim of the buttons is to switch between a line graph and a bar graph. The buttons are created fine, and open in the figure but I can’t see the properties.
My script:
chartSwitchGroup = uibuttongroup(tab, ‘Position’, [30, screenSize(4) – 330, 1220, 40],’BorderType’,’none’);
rbLine = uiradiobutton(chartSwitchGroup, ‘Text’, ‘Line Graph’, ‘Position’, [10, 5, 105, 30], ‘Value’, true, ‘FontSize’,16);
rbBar = uiradiobutton(chartSwitchGroup, ‘Text’, ‘Bar Chart’, ‘Position’, [115, 5, 125, 30], ‘FontSize’,16);
rbBar
rbLine
Command window:
I’m just trying to see the properties, basically so I can see what they are and learn more but even when leaving the figure open, I still get the ‘no longer exists message’
rbBar =
RadioButton (Bar Chart) with properties:
Value: 0
Text: ‘Bar Chart’
Position: [115 5 125 30]
Show all properties
rbLine =
RadioButton (Line Graph) with properties:
Value: 1
Text: ‘Line Graph’
Position: [10 5 105 30]
Show all properties
Unable to display properties for variable rbLine because it no longer exists.
**EDIT: More intense googling suggests this could be something to do with nested functions? ** properties, radio buttons MATLAB Answers — New Questions