From 42f7c793b2ab6fc6e12bd7b5a6fc3ce2cb2d0b48 Mon Sep 17 00:00:00 2001
From: Orestis Malaspinas <orestis.malaspinas@hesge.ch>
Date: Thu, 9 Jan 2020 10:59:09 +0100
Subject: [PATCH] added script

---
 scripts/gradients.m | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 scripts/gradients.m

diff --git a/scripts/gradients.m b/scripts/gradients.m
new file mode 100644
index 0000000..04ba93b
--- /dev/null
+++ b/scripts/gradients.m
@@ -0,0 +1,16 @@
+clear all
+clf
+
+tx = ty = linspace (-2, 2, 41)';
+[xx, yy] = meshgrid (tx, ty);
+tz = xx.^2 + yy.^2;
+
+mesh(tx, ty, tz)
+
+hold on
+
+[x, y] = meshgrid (-2:0.2:2);
+h = quiver (x, y, 2*x, 2*y);
+set (h, "maxheadsize", 0.33);
+
+hold off
-- 
GitLab