Wednesday, February 04, 2009

Matlabku

Ho ho skang dah kul5.39pm. Abg dah ajak balik.aku ckp tunggu sat, sbb aku tgh run matlab. Td baru berjaya run function tu, ni tgh run the whole program. Harap2 berjaya...

function pushbutton9_Callback(hObject, eventdata, handles)
.
.
.direction = get(handles.H,'value');
directionofmob = direction

guidata(hObject, handles);

function H_Callback(hObject, eventdata, handles)
% hObject handle to H (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 H as text
% str2double(get(hObject,'String')) returns contents of H as a double

H = get(hObject,'value');

switch get(handles.H,'Value')
case 1
set(handles.H,'value',0);
case 2
set(handles.H,'value',45);
case 3
set(handles.H,'value',90);
case 4
set(handles.H,'value',135);
case 5
set(handles.H,'value',180);
case 6
set(handles.H,'value',225);
case 7
set(handles.H,'value',270);
case 8
set(handles.H,'value',315);
case 9
set(handles.H,'value',360);

otherwise

end

guidata(hObject, handles)

and it works!!!!!!!!!!!!!!!!bestnya..jom bang balik.. eh dpt msg dr ct aminah, "perak jatuh ke BN" ha??? pedia? dh tak cukup kerusi ke? (means ade yg lompat ke?) amie kata najib wat pengumuman sec.lansung tadi..hah, biar betik..

jom balik

3 comments:

amie said...

very the betik.ayam betul.lawan tetap lawan..hehehe..tahniah atas kejayaan matlab hang itu.kejayaan itu manis lagi manis kalu hang boleh makan ape aja..haaha..apa kaitan ntah,

sisanizu said...

memang betik.sbbnye:

1.jamaludin radzi & Mohd Osman Mohd Jailu tuh disabit kes rasuh desu.tetiba laks kononnya kuar pkr & sertai parti bebas (taik hang).dh kene pecat tu terima lah hakikat desu.
2.najib boleh bg lepas ke kes rasuh 10 feb ni,, tunggu & lihat..
3. harap2 sultan perak bg keputusan adil.bubar &adakan pilihanraya (nih sure najib takut)
4. betik lagi sbb najib mcm tak sabo2 nk jd PM msia.
5. najib fobia pilihanraya (spr pun tanak gaks) he he
6. propaganda tv3 sgt betik & jahat

sisanizu said...

sekian terima kaseh. Harap sy sgt berjaya dan boleh makan mcm mcm ct aminah (tp dlm keadaan sy lebih cantek)

Related Posts Plugin for WordPress, Blogger...