Hey Guys, I've a smale Problem with a Listbox.I have created a GUI with a Listbox which has the task to display Names from an Array.The main Problem is, matlab says: CAT arguments dimensions are not consistent.I know what matlab is trying to tell me, but i dont know how to solve it. Here is the Code.
if UsedAmplification == 1 ListboxInput = get(handles.PlotedShotsListbox,'String') ListboxContent = [num2str(shot),' ','UsedAmplification'] ListboxOutput = [ListboxInput,ListboxContent] set(handles.PlotedShotsListbox,'String',ListboxOutput) endif closestAmplification == 1 ListboxInput = get(handles.PlotedShotsListbox,'String') ListboxContent = [num2str(shot),' ','ClosestAmplification'] ListboxOutput = [ListboxInput,ListboxContent] set(handles.PlotedShotsListbox,'String',ListboxOutput) end
Best Answer