I need help translating an excel equation to matlab.

I have translated a simple if-statements in excel such as:

```
Ps(t)=IF(T(t)<Tp,P,0)

```

into matlab as:

```
 if Ps(t)=T(t)<Tp;              
 p;
 0;
 end

```

Is this correct? and if so how do I translate a more complicated excel equation such as:

```
=IF(F6>273.16,(IF(AND(AB5>0,Y6>0),MIN(Y6*3600/$AE$11,AB5),0)),0)

```