could you please provide me with code of theis equation in matlab file i mean i am new in matlab and i have to implement these equations in m-file,
kp=0.8*30^(-c/50)*(Tinlet-Tjin) if 0<=c(t)<=49;
kp=0.15*30^(c/50-2)*(Tsteam-Tjin) if 51<=c(t)<=100
else kp=0
c(t) is controller out pur (its valve) from 0 to 100%
Tjin i have to bring it from simulink
i need how to do it the structure and any thing helpful
you can send Tjin to workspace with 'to workspace' block or 'out' block in simulink. After sending Tjin, you can easily implement this equation by take a look using if in matlab help.