วันจันทร์ที่ 11 กันยายน พ.ศ. 2560

If else 1

function s=signum(x)
if(x>0)
s='positive'
elseif(x<0)
s='negative'
else
s='zero'
end
endfunction

-->exec('C:\Users\5810110255\Desktop\dadada.sce', -1)
 
-->signum(0)
 ans  =
 
 zero   

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

Excel02

https://drive.google.com/open?id=0B_E2CSSvxI-pck9nWXNUN3NQc2s