Setting up matlab code for combustion problem

2 commentaires

KSSV
KSSV le 18 Oct 2021
What is the question?
i have this code but i can’t seem to work in matlab and help on how to plot
for n=1:17
Tx = Tp(n); % specify which temperature to use
if Tr < 1600 % determines which values to use, reactant Ar = A(:,1); elseif Tr >= 1600 Ar = A(:,2); end
if Tp(n) < 1600 %determines which values to use, products Ap = A(:,1); elseif Tp(n) > 1600 Ap = A(:,2); end
for m=1:5
%%%%%Main Equation
dh = N((Ap + Bp*Tx + Cp*log(Tp)) - (Ar + Br*Tr + Cr*log(Tr))); % n (row) is temp, m (column) are elements
%%%%%Main Equation
end

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Combustion and Turbomachinery dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by