From 698eb2f799fa82e68ec2ba8fc72b08c39c51b5b0 Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Fri, 30 Jul 2004 12:26:45 +0000 Subject: [PATCH] fixed bug --- Cantera/matlab/cantera/@ThermoPhase/elementName.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cantera/matlab/cantera/@ThermoPhase/elementName.m b/Cantera/matlab/cantera/@ThermoPhase/elementName.m index 40d6f29e0..6148e3f44 100644 --- a/Cantera/matlab/cantera/@ThermoPhase/elementName.m +++ b/Cantera/matlab/cantera/@ThermoPhase/elementName.m @@ -6,11 +6,11 @@ function nm = elementName(a, m) % integers, the output will be a cell array of % the same shape containing the name strings. % -[m, n] = size(k); +[mm, nn] = size(m); nm = {}; -for i = 1:m - for j = 1:n - nm{i,j} = phase_get(a.tp_id, 41, k(i,j)); +for i = 1:mm + for j = 1:nn + nm{i,j} = phase_get(a.tp_id, 41, m(i,j)); end end