From 02ec8ff1dfe6b3f127694c40bb27427abb3836a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Guts=29?= <stepan@adjemian.eu>
Date: Mon, 15 May 2023 14:36:22 +0200
Subject: [PATCH] Fix example in header.

And show that an expression can include scalar variables (defined in
the caller workspace).
---
 src/utilities/dplot/dplot.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/utilities/dplot/dplot.m b/src/utilities/dplot/dplot.m
index d8f9f27..a6ba3ef 100644
--- a/src/utilities/dplot/dplot.m
+++ b/src/utilities/dplot/dplot.m
@@ -6,7 +6,8 @@ function dplot(varargin)
 %
 % >> ds1 = dseries(randn(100,3), dates('2000Q1'), {'x','y','z'});
 % >> ds2 = dseries(randn(100,3), dates('2000Q1'), {'x','y','z'});
-% >> dplot --expression 2*cumsum(x/y(-1)-1) --dseries toto --dseries noddy --range 2001Q1:2024Q1
+% >> b = 3;
+% >> dplot --expression 2/b*cumsum(x/y(-1)-1) --dseries ds1 --dseries ds2 --range 2001Q1:2024Q1
 %
 % Will produce plots of 2*cumsum(x/y(-1)-1), where x and y are variables in objects toto and noddy,
 % in the same figure.
-- 
GitLab