about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/KPMtools/ncols.m
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/bnt-master/KPMtools/ncols.m')
-rw-r--r--sourcecodes/bnt-master/KPMtools/ncols.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/KPMtools/ncols.m b/sourcecodes/bnt-master/KPMtools/ncols.m
new file mode 100644
index 00000000..a6fe1352
--- /dev/null
+++ b/sourcecodes/bnt-master/KPMtools/ncols.m
@@ -0,0 +1,4 @@
+function c = cols(x)
+% COLS    The number of columns.
+% COLS is a more readable alternative to size(x,2).
+c = size(x,2);