Reputation: 1102
The code below will work if the numerical input is a single scalar, but won't work if it is a vector. I would like the user to input the vector in the format of [5 5 5]
.
handles.brightness = str2double(get(hObject,'String'));
I would like to store the vector values in an empty array zeros(1,3)
. Then I could do something like handles.brightness(1)
or handles.brightness(2)
to use the vector elements.
Upvotes: 0
Views: 927