MATLAB: Difference between [ handles.comp1 ]=axes and [ comp1=axes ] axishandles What is the difference between defining an axis using {handles.comp1=axes} and {comp1= axes} I'm guessing in the first case the axes has its handle stored in the handles structure and in the second it is not stored into it? Best Answer Yes, that is the only difference. And it would be perfectly valid to usecomp1 = axes;handles.comp1 = comp1; Related SolutionsMATLAB: GUI panels are not showing Your code logic looks good. The issue, I think, is that you are indexing incorrectly into contents to assign a value to popupmenu1. Your code iscontents(get(hObject,'Value'))but the code Guide provides in the callback hint iscontents{get(hObject,'Value')}Note the use of curly braces {} MATLAB: GCA attributes axes changes Use set commandExamplet=0:0.1:10;y=sin(t);plot(t,y);set(gca,'xlim',[0 5])With the new version of Matlabh=gcah.XLim=[0 5] Related QuestionStore image in a handle.How to call a function (another .m file) in MATLAB GUIHow to save/access an axes’s properties using the handles structureProblem with spmd when data sizes increaseHow to Make All Children of a Figure InvisibleHow to add brightness slider in matlab gui that would change the second image’s brightness
Best Answer