How do I run this iteration?
显示 更早的评论
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
回答(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)
类别
在 帮助中心 和 File Exchange 中查找有关 Just for fun 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!