Контрольная работа: Построение графического интерфейса в системе Matlab

switch popup_sel_index

case 1

F = @(t, x) 0; ode23tx (F, [0 10], 1)

case 2

F = @(t, x) t; ode23tx (F, [0 10], 1);

case 3

F = @(t, x) x; ode23tx (F, [0 10], 1);

case 4

F = @(t, x) – x; ode23tx (F, [0 10], 1);

case 5

F = @(t, x) 2*x-x^2; ode23tx (F, [0 10], 1);

end

% –

function FileMenu_Callback (hObject, eventdata, handles)

% hObject handle to FileMenu (see GCBO)

% eventdata reserved – to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% –

function OpenMenuItem_Callback (hObject, eventdata, handles)

% hObject handle to OpenMenuItem (see GCBO)

% eventdata reserved – to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

file = uigetfile ('*.fig');

if ~isequal (file, 0)

open(file);

end

% –

function PrintMenuItem_Callback (hObject, eventdata, handles)

% hObject handle to PrintMenuItem (see GCBO)

К-во Просмотров: 303
Бесплатно скачать Контрольная работа: Построение графического интерфейса в системе Matlab