Mercurial > hg > mauch-mirex-2010
annotate _FullBNT/KPMtools/subplot2.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
rev | line source |
---|---|
matthiasm@8 | 1 function subplot2(nrows, ncols, i, j) |
matthiasm@8 | 2 % function subplot2(nrows, ncols, i, j) |
matthiasm@8 | 3 |
matthiasm@8 | 4 |
matthiasm@8 | 5 sz = [nrows ncols]; |
matthiasm@8 | 6 %k = sub2ind(sz, i, j) |
matthiasm@8 | 7 k = sub2ind(sz(end:-1:1), j, i); |
matthiasm@8 | 8 subplot(nrows, ncols, k); |
matthiasm@8 | 9 |
matthiasm@8 | 10 if 0 |
matthiasm@8 | 11 ncols_plot = ceil(sqrt(Nplots)); |
matthiasm@8 | 12 nrows_plot = ceil(Nplots/ncols_plot); |
matthiasm@8 | 13 Nplots = nrows_plot*ncols_plot; |
matthiasm@8 | 14 for p=1:Nplots |
matthiasm@8 | 15 subplot(nrows_plot, ncols_plot, p); |
matthiasm@8 | 16 end |
matthiasm@8 | 17 end |