Commit f6f4a532 authored by Florian Centler's avatar Florian Centler

Fixing error in plot function, which potentially ommitted fluxes

parent 2b1a22da
......@@ -22,7 +22,7 @@ function [ f ] = plotExchangeFluxes(trajectory)
ids = trajectory.FBA(i).coupledReactions.ReacID;
counter = 1; finalIds = -1; myLegend = {};
for j = i:length(ids)
for j = 1:length(ids)
if sum(abs(trajectory.FBA(i).fluxes(:,ids(j)))) ~= 0.0
finalIds(counter) = ids(j);
myLegend(counter) = trajectory.FBA(i).coupledReactions{int2str(finalIds(counter)), 'ReacName'};
......@@ -46,7 +46,7 @@ function [ f ] = plotExchangeFluxes(trajectory)
ids = setdiff(trajectory.FBA(i).exchangeReactions.ReacID, trajectory.FBA(i).coupledReactions.ReacID);
counter = 1; finalIds = -1; myLegend = {};
for j = i:length(ids)
for j = 1:length(ids)
if sum(abs(trajectory.FBA(i).fluxes(:,ids(j)))) ~= 0.0
finalIds(counter) = ids(j);
myLegend(counter) = trajectory.FBA(i).exchangeReactions{int2str(finalIds(counter)), 'ReacName'};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment