This should copy a figure window and all the objects in it to the first one and resized to fit both.
This is a little cleaner than managing two figure windows, but it may not be best thing to do if you want to do further processing on either figure.
I'd expect issues if you're using two different colormaps.
Michael Katz (2022). Compare Two Figures side by side (https://www.mathworks.com/matlabcentral/fileexchange/21998-compare-two-figures-side-by-side), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!