Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Casey
Posts:
4
Registered:
9/8/12


Basic Matlab Help
Posted:
Dec 5, 2012 5:21 PM


Let me start by saying this is probably going to be super basic for most of you. My goal is to make GUI that displays multiple questions separately in a random order using randperm. I've got my initial question popping up just fine, but I'm not sure how to use randperm for automatically moving on to the next random question, at all. The only time I've used randperm is working with numbers in a matrix. One of my question's codes is below: function Noteven()
f = figure
handles.questionOne = uicontrol('style','text','position',[400 200 150 60], ... 'string', 'Which number is not even?', 'fontsize', 16);%
uicontrol('style','popupmenu','string','Choose321') if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white');
end



