Hello,
I have tried and tried and cannot get my piece of code to work, I know I'm lacking somewhat in knowledge. I am trying to go to the next value in the list box using the 'value' I know it might seem a bit pointless as I have the list box already that I can cycle through the images with but for the purpose of image processing this will make it easier to analyze each image,
function pushbutton3_Callback(hObject, eventdata, handles) handles.output = hObject; picfromlist = get(handles.listbox1,'value'); nextpic = picfromlist + 1; buttonpress(hObject, eventdata, handles); imshow(nextpic(handles.listbox1,'value')); guidata(hObject, handles);
The error I get is.
Subscript indices must either be real positive integers or logicals.Error in Groundtruth>pushbutton3_Callback (line 124)imshow(nextpic(handles.listbox1,'value'));
Thanks!
Best Answer