How do I run this iteration?
Show older comments
I would like to run a code that uses 2 ranges of values(example NTU = 0.1,0.2 etc and Cr = 0.2,0.3 etc) to determine . ε=1−e(-NTU(1 + Cr))/1+Cr Any help? Please I am pretty much still a novice at this and I’m trying to learn on the go. I have tried writing some code but I got stuck
Answers (1)
NTU = linspace(0.1,0.2) ;
Cr = linspace(0.2,0.3) ;
[NTU,Cr] = meshgrid(NTU,Cr) ;
eps = 1-exp(-NTU.*(1 + Cr))./(1+Cr) ; % check this equation
surf(NTU,Cr,eps)
Categories
Find more on Just for fun 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!