How to relate between popup parameter in subsystem and switch case in matlab function?
Show older comments

switch HE_Type %(which HE_Type has 2 only choices parallel_flow or counter_flow)
case 'parallel_flow'
E = (1-exp(-NTU*(1+C)))/(1+C)
case 'counter_flow'
E =(1-exp(-NTU*(1+C)))/((1-C*exp(-NTU*(1-C))))
end
% i make a model simulink to calculate the temperature of heat exchanger
%so there is 2 types of heat exchanger so for each type there is own equation
%so i wanna to make a popup parameter in mask of subsystm (types) and relate this popup with switch case in matlab function
4 Comments
Geoff Hayes
on 6 Jun 2022
Walter Roberson
on 6 Jun 2022
How is HE_Type defined?
Are you using Guide or App Designer?
Mostafa Kamel
on 6 Jun 2022
Mostafa Kamel
on 6 Jun 2022
Accepted Answer
More Answers (0)
Categories
Find more on Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!