MATLAB: If statemnt do not execute the second statement

if statment

Hello, I try to run the following if-statement: if 0<T<10 h=T-10 else T>100 h=0.45*T+900 end. Variable T is defined as T=110. It means that the first condition is false and Matlab have to execute the second condition. But by any reason it does not. Can anyone tell me where I did a mistake?
Best regards, Sergey

Best Answer

if 0<T & T<10
h=T-10
elseif T>100
h=0.45*T+900
end