diff toolbox/tmtdemo.m @ 7:e0817ccb2834 draft

Add square root matrix function file, rename atom at funm_files, modify old toolbox to run it inside GNU Octave. added funm_files/fun_atom.m added sqrtm2.m added toolbox/gecp.m toolbox/see.m: comment wrong call to subplot toolbox/tmtdemo.m: add a cast to double, as eig does not admit bool matrix input removed funm_files/funm_atom.m
author Antonio Pino Robles <data.script93@gmail.com>
date Tue, 26 May 2015 18:14:54 +0200
parents 8f23314345f4
children
line wrap: on
line diff
--- a/toolbox/tmtdemo.m	Sat May 16 11:39:36 2015 +0200
+++ b/toolbox/tmtdemo.m	Tue May 26 18:14:54 2015 +0200
@@ -217,9 +217,9 @@
 c = []; e = []; j = 1;
 for i=1:matrix(0)
     A = full(matrix(i, 10));
-    if norm(skewpart(A),1)  % If not Hermitian...
+    if norm(skewpart(A),1) 
        c1 = cond(A);
-       eg = eig(A);
+       eg = eig(double(A));
        e1 = max(abs(eg)) / min(abs(eg));
        % Filter out extremely ill-conditioned matrices.
        if c1 <= 1e10, c(j) = c1; e(j) = e1; j = j + 1; end