comparison toolboxes/FullBNT-1.0.7/KPMtools/subplot2.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function subplot2(nrows, ncols, i, j)
2 % function subplot2(nrows, ncols, i, j)
3
4
5 sz = [nrows ncols];
6 %k = sub2ind(sz, i, j)
7 k = sub2ind(sz(end:-1:1), j, i);
8 subplot(nrows, ncols, k);
9
10 if 0
11 ncols_plot = ceil(sqrt(Nplots));
12 nrows_plot = ceil(Nplots/ncols_plot);
13 Nplots = nrows_plot*ncols_plot;
14 for p=1:Nplots
15 subplot(nrows_plot, ncols_plot, p);
16 end
17 end