Please use the GUI in MATLAB to prepare a shooting program: 1. user needs to Ent
ID: 3852966 • Letter: P
Question
Please use the GUI in MATLAB to prepare a shooting program:
1. user needs to Enter the ball's initial speed, angle, difficulty (will change the basket(size of hoop).
2. Basket height needs can be custom.
3. Scoring is based on difficulty, the angle for scoring changes with difficulty.
4. The amount of points per basket changes with difficulty level.Scoring criteria is customed.
5. The final result in the GUI interface will display, the number of shots required, the total score, and the figure showing the shooting track.
Explanation / Answer
function My_specialcallback(handles,eventdata)
the_input = get(handles.An_Edit_box_with_a_filename_in_it,'string');
[the_output1, the_output2 ... ] = my_function(the_input);
set(handles.An_Edit_box_for_output,'string',the_output1)
set(handles.A_check_box,'value',the_output2)
end