cantera/interfaces/matlab/toolbox/@Kinetics/rop.m
Ray Speth 2528df0f75 Reorganized source tree structure
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.

All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00

20 lines
585 B
Matlab

function rop = rop(k)
% ROP - Forward and reverse rates of progress.
%
% ROP(K) returns an M x 2 array of reaction rates of
% progress. The first column contains the forward rates of progress,
% and the second column the reverse rates. If this function
% is called with no output argument, a bar graph is produced.
%
f = rop_f(k)
r = rop_r(k)
rop = [f r]
if nargout == 0
figure
set(gcf,'Name','Rates of Progress');
bar(rop);
xlabel('Reaction Number');
ylabel('Rate of Progress [kmol/m^3-s]');
title('Rates of Progress');
legend('Forward', 'Reverse');
end