グラフィックウインドウをサブウインドウの行列に分割する
subplot(m,n,p) subplot(mnp)
正の整数
10進表記の整数 mnp
mnp
subplot(m,n,p) または subplot(mnp) はグラフィックウインドウを m行n列のサブウインドウの行列に分割し, p番目のサブウインドウを描画先として選択します. サブウインドウの番号は,行優先でカウント,つまり, 行列の要素(i,j)に対応するサブウインドウは(i-1)*n + j番となります.
subplot(221) plot2d() subplot(222) plot3d() subplot(2,2,3) param3d() subplot(2,2,4) hist3d()