From cc77d254a6d1524c27a93e71551dbf1ac1a97aaa Mon Sep 17 00:00:00 2001 From: Junpeng Lao Date: Sat, 25 Nov 2017 11:54:23 +0100 Subject: [PATCH] Add docstring for helper function --- .gitattributes | 0 imap_utilities/imsqrmat.m | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e69de29 diff --git a/imap_utilities/imsqrmat.m b/imap_utilities/imsqrmat.m index 0dcee1a..72cf666 100644 --- a/imap_utilities/imsqrmat.m +++ b/imap_utilities/imsqrmat.m @@ -1,5 +1,9 @@ function [himgsc,hStrings] = imsqrmat(mat, varargin) % pretty display for small (near)square matrix +% Usage: +% [himgsc,hStrings] = imsqrmat(mat) +% [himgsc,hStrings] = imsqrmat(mat, TickXY) +% [himgsc,hStrings] = imsqrmat(mat, TickX, TickY) %-------------------------------------------------------------------------- % Copyright (C) iMap Team 2016 @@ -33,5 +37,5 @@ 'YTick', 1:size(mat,1),... 'YTickLabel', TickY,... 'TickLength', [0 0],... - 'xdir','reverse','ydir','normal'); + 'xdir','normal','ydir','reverse'); end \ No newline at end of file