cantera/interfaces/matlab/toolbox/@ThermoPhase/massFractions.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

17 lines
No EOL
434 B
Matlab

function x = massFractions(a)
% MASSFRACTIONS - Mass fractions.
%
% massFractions(phase);
%
% returns the array of species mass fractions for phase 'phase'. If
% no output argument is specified, a bar plot is produced.
%
x = phase_get(a.tp_id,21);
if nargout == 0
figure
set(gcf,'Name','Mass Fractions')
bar(x)
xlabel('Species Number')
ylabel('Mass Fraction')
title('Species Mass Fractions')
end