View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.65 KB File ID: #43015 Version: 1.0




Move axes to another figure window as a suplot

| Watch this File

File Information

% This is a function to automatically move a selection of axis in
% preexisting plots to one subplot figure. This is helpful for comparing
% large amounts of data.
% Inputs:
% inputname: ax - array of axes handles.
% a (optional) - number of rows of figures in subplot.
% b (optional) - number of columns of figures in subplot.
% Outputs:
% name: figurewindow handle
% plots: new figure window
% Standard call:
% for i=1:n_i
% figure(i)
% ax_h(i)=gca;
% end
% move_to_subplots(ax_h,2,ceil(n_i/2))
% Can also be used to copy a figure by move_to_subplots(gca,1,1)
% Written by C. Hogg Date 2012_06_01
% Modified 20130808 Added the handle return

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us