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

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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