diff print_issparse.m @ 0:48b6fb693025

Initial commit.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 17 Sep 2015 10:12:50 +0200
parents
children 54d3ab296ba0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/print_issparse.m	Thu Sep 17 10:12:50 2015 +0200
@@ -0,0 +1,9 @@
+function print_issparse(A)
+    b = issparse(A);
+    if b
+        s = 'true';
+    else
+        s = 'false';
+    end
+    fprintf('%8s is sparse: %s\n',inputname(1),s);
+end
\ No newline at end of file