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 graficznyJP SS Interfejs graficznydesign user interface?ABE09FPS4 ZB4 501 UM3 UM4 Interface Converter h1371g02 Jądro komórkowe w interfazie Cykl komórkowyInterfejs FMS(1)F20 interferencja swiatla 2t cyfrowych procesow graficznych2?manage interfacesTF93981Digital Mode Interface KitMonitor interfejsu CentronicsUSB Interfaceinterfaces docinterface?5737EAus Fehlern lernen typische Interferenzfehler polnischer DeutschlernerInterfejs I2C, część 2Zad interface Szymek testywięcej podobnych podstron