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