From a50c230299a42587d9cb704e0e240218742f8bea Mon Sep 17 00:00:00 2001
From: Lars Hubatsch <hubatsch@pks.mpg.de>
Date: Tue, 13 Oct 2020 12:14:40 +0200
Subject: [PATCH] Adding start parameter to plot_sim.m

---
 @Ternary_model/plot_sim.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/@Ternary_model/plot_sim.m b/@Ternary_model/plot_sim.m
index d9de961..ef2d481 100644
--- a/@Ternary_model/plot_sim.m
+++ b/@Ternary_model/plot_sim.m
@@ -1,4 +1,4 @@
-function plot_sim(T, mode, nth, color)
+function plot_sim(T, mode, nth, color, start)
 %PLOT_SIM Show movie of simulation
 % mode 'mov' ... show movie
 % mode 'plot' ... show plot
@@ -31,7 +31,7 @@ elseif strcmp(mode, 'plot')
     xlabel('x [\mum]'); ylabel('volume fraction'); 
 %     N = max(max(T.sol([1, 2:nth:si(1)], :)));
     N = 1;
-    plot(T.x, T.sol([1, 1:nth:si(1)], :)/N, 'LineWidth', 1, 'Color', color);
+    plot(T.x, T.sol([1, start:nth:si(1)], :)/N, 'LineWidth', 1, 'Color', color);
 %     plot(T.x, T.sol(nth, :), 'LineWidth', 1, 'Color', color);
     plot(T.x, Ternary_model.phi_tot(T.x, T.a, T.b, T.e, T.u0, 0),...
         'LineWidth', 1, 'LineStyle', '--', 'Color', [0.97, 0.55, 0.03]);
-- 
GitLab