matlab - plot in all the subplots at the same time -
I have a figure with 2 subplots. I would like to know whether it is possible to attract similar plots in all subdivisions at the same time (and how).
For example, in the following conspiracy, I want to conspirate together (X, Y) and then I would like to move forward separately.
fig = figure subdivision (2,1,1) subdivision (2,1, 1) plot (x, z) subplot (2,1,2) plot on plot (x) ( X, y) subplot (2,1,2) plot (x, y) hold, k)
You can do this with set as the cell arrays are as follows. See for details. subplot (2,1,1); H1 = Plot (X, Y); Get a handle for% // plot subplot (2,1,2) H2 = plot (x, y); Plot set ([h1; h2], {'xdata'}, {x1; x2}, {'ydata'}, {y1; y2})% // new value: x1 x2 y1 y2
Comments
Post a Comment