annotate general/numerical/issym.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents e44f49929e56
children
rev   line source
samer@4 1 function z=issym(x,th)
samer@4 2 % issym - Test if matrix is symmetric with optional tolerance
samer@4 3 %
samer@4 4 % issym :: [[N,N]] -> bool.
samer@4 5 % issym :: [[N,N]], nonneg -> bool.
samer@4 6
samer@4 7 if nargin<2,
samer@4 8 z=all(all(x==x'));
samer@4 9 else
samer@4 10 z=all(all(abs(x-x')<=th));
samer@4 11 end