From 5e183b392dc34fae4547cc551be59a7fb9b40523 Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Mon, 5 Nov 2018 09:59:19 +0100 Subject: [PATCH] Documentation updated --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eda1bb3..4b96c13 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,10 @@ A real life example showing some random noise generated data: ``` Julia # Create some noisy data... -x = linspace(-2pi, 2pi, 100); -y = 1.5 * sin.(0.3 + 0.7x) ; +x = range(-2pi, stop=2pi, length=100); +y = 1.5 .* sin.(0.3 .+ 0.7x) ; noise = randn(length(x))./2; -e = 0.5 * ones(x); +e = 0.5 * fill(1., length(x)); # ...and show them using gnuplot. @gp("set key horizontal", "set grid", title="My title",