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

Respuestas (1)

KSSV
KSSV el 26 de Jul. de 2020
Editada: KSSV el 26 de Jul. de 2020

0 votos

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)

Categorías

Más información sobre Just for fun en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Jul. de 2020

Editada:

el 26 de Jul. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by