Gast
#386687
Ich möchte mit MATLAB ein kleines Tool schrieben, mit dem einen
Tiefpass grafisch ausgeben kann.
Das Programm soll so sein, dass ich den Widerstandswert und
Kondensatorwert immer über die EDIT BOXEN abändern kann.
Wie mache ich dies mit MATLAB?
/******************************************************************/
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)
s = tf('s');
% Tiefpass 1. Ordnung
%figure(1)
% Aufruf Bode-Darstellung
bode(G);
grid;
axis equal;
function edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1
as a double