I'm working on an assignment where I create a GUI that has a an axis and then radio buttons to change the type of line, color, etc. However, when I add the uicontrol objects, they are not appearing on the GUI. The button group appears, but the individual buttons with text do not.
Here is my code for setting up the buttongroup:
mainplot.rb(1)=uibuttongroup('Visible','off','SelectionChangedFcn',{@radiobutton,1},'position',[.05 .12 .1 .3]);
and here is the code to set up on of the buttons:
red=uicontrol(mainplot.rb(1),'style','radiobutton','string','Red','position',[.1 .4 .1 .1],'units','normalized');
I tried setting the whole group to Visible, but that didn't work either. Also, for the postitioning, are the first two numbers the distance from the bottom-left of the figure window, or the bottom-left of the button group window? I think that's the issue I'm having. but I dont know for sure. I've tried many different sets of values, just to try to get it into view, to no avail. I am using 2020a, if that helps
Best Answer