The Differential Equation (10 points - MATLAB)
Based on the following GUI fig and the Callback function of the m files, explain in a few steps how the fig file was created and how the m file is communicating with the GUI elements.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
a = str2double(get(handles.input_string,'String'));
x = 0:0.01:10;
y = sin(a*x);
plot(handles.axes1,x,y)
15 points - MATLAB
In the following table, the variable Students is a vector of structures. Each structure has four fields: Name, Id_n, Quiz, and Exams. The field Name is a string. Id_n is an integer. Quiz is a vector with four values (which are double values), and Exams is a vector with three values (which are also double values).
Students
Name
Id_n
Quiz
Exams