interface graficzny


string- wart znakow- napis
tag- tagi noo
set(uchwyt,'włas',wart)
get-odczytu tych wart
zm=get(uchwyt,'włas')





kalkulator:

% --- Executes on button press in dod.
function dod_Callback(hObject, eventdata, handles)

a=get(handles.edit1,'String')
b=get(handles.edit2,'String')
a=str2num(a)
b=str2num(b)
c=a+b
c=num2str(a+b)
set(handles.text1,'String',c)


% hObject handle to dod (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)


% --- Executes on button press in odejm.
function odejm_Callback(hObject, eventdata, handles)
% hObject handle to odejm (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

a=get(handles.edit1,'String')
b=get(handles.edit2,'String')
a=str2num(a)
b=str2num(b)
c=a-b
c=num2str(a-b)
set(handles.text1,'String',c)


% --- Executes on button press in dzielen.
function dzielen_Callback(hObject, eventdata, handles)
% hObject handle to dzielen (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

a=get(handles.edit1,'String')
b=get(handles.edit2,'String')
a=str2num(a)
b=str2num(b)
c=a/b
c=num2str(a/b)
set(handles.text1,'String',c)
% --- Executes on button press in mnoz.
function mnoz_Callback(hObject, eventdata, handles)
% hObject handle to mnoz (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

a=get(handles.edit1,'String')
b=get(handles.edit2,'String')
a=str2num(a)
b=str2num(b)
c=a*b
c=num2str(a*b)
set(handles.text1,'String',c)



wykresY:

x=[-pi:pi/16:pi];
y1=sin(x); y2=cos(x);
axes(handles.axes1)
plot(x,y1)
grid
axes(handles.axes2)
plot(x,y2)
grid


a=get(handles.edit1,'String')
b=get(handles.edit2,'String')
a=str2num(a)
b=str2num(b)


x=[a:pi/16:b];
y1=sin(x); y2=cos(x);
axes(handles.axes1)
plot(x,y1)
grid
axes(handles.axes2)
plot(x,y2)
grid




CYLINDER
SPHERE

Wyszukiwarka

Podobne podstrony:
Interfejs graficzny
JP SS Interfejs graficzny
design user interface?ABE09F
PS4 ZB4 501 UM3 UM4 Interface Converter h1371g
02 Jądro komórkowe w interfazie Cykl komórkowy
Interfejs FMS(1)
F20 interferencja swiatla 2
t cyfrowych procesow graficznych2?
manage interfacesTF93981
Digital Mode Interface Kit
Monitor interfejsu Centronics
USB Interface
interfaces doc
interface?5737E
Aus Fehlern lernen typische Interferenzfehler polnischer Deutschlerner
Interfejs I2C, część 2
Zad interface Szymek testy

więcej podobnych podstron