質問 setgridcell not working

  • 2011年12月12日 7:59
     
      コードあり

    I tried to use grid() and setgridcell() to create subplots and control their positions, but setgridcell() function doesn't seem to work as it states.

    For example, given the following code:

    a = rand(100,1)
    grid(3,2)
    setgridcell(1,0)
    plot(a)
    setgridcell(2,1)
    plot(a)
    

    The two subplots are created at (0,0) and (0,1), instead of (1,0) and (2,1).

    I also tried calling autoadvancegrid(False) but this does not disable auto advancing cells as it states.