GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Wednesday, December 22, 2010

If Else In Matlab

Type to test:

>> sleep = true;
>> if sleep
disp('Do sleep');
end
Do sleep

>> a = 2;
>> if a>3
disp('Nothing');
else
disp('Do sleep')
end
Do sleep


Share/Bookmark

No comments:

Post a Comment