Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top