matlab code

Status
Not open for further replies.

magdi23

Newbie level 4
Joined
Jun 2, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
hello guys,

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

thanks
 

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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…