tugas fiskom
Post on 21-Nov-2015
6 Views
Preview:
DESCRIPTION
Tugas Fisika Komputasi. Membuat program dengan MATLAB
TRANSCRIPT
Nama : Husnul HatimahNIM : 1308205019
1. Kode Program (source code) % --- Executes on button press in grafik_pushbutton.function grafik_pushbutton_Callback(hObject, eventdata, handles)axes(handles.axes1);for i=1:10 x(i)=i; if x(i)>=0 && x(i)=2 && x(i)=5 j(i)=0; end end endendhandles.y(1,:)=j;plot(x,handles.y);title('grafik f(x)');xlabel ('x');ylabel ('y'); for i=1:10 x(i)=i; if x(i)>=0 && x(i)=8 && x(i)=2 && x(i)=5 && x(i)
top related