diff symmetricPart.m @ 574:f8072bb8d1d1 feature/grids

Add functions for symmetric and skew parts of matrix
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 04 Sep 2017 17:50:27 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/symmetricPart.m	Mon Sep 04 17:50:27 2017 +0200
@@ -0,0 +1,4 @@
+% Returns the symmetric of A
+function S = symmetricPart(A, tol)
+    S = 1/2*(A + A');
+end