So, I have this GUI that takes a excel sheet, or CSV file and plots the data inside the sheet. On top of that I have edit boxes that creste labels on the plot of the GUI. The plotting works and the label making works, but I have a check box that add elements to the tile based off what your labels are. saddly, the lements instead of rweading out in one line, stack ontop of eachother
and the code is such
function Excel_Button_Callback(hObject, eventdata, handles)numdata=xlsread(uigetfile({'.xlsx'},'File Selector'))x=numdata(:,1);y=numdata(:,2);plot(x,y);xlabel(get(handles.X_Label_Input, 'String'));ylabel(get(handles.Y_Label_Input, 'String'));title(get(handles.Title_Input, 'String'));if (get(handles.VsCheck, 'Value'))==1;title([get(handles.Title_Input, 'String') get(handles.Y_Label_Input, 'String') 'vs' get(handles.X_Label_Input, 'String') date]);end
Best Answer