plotting several plots in a single graph

Home Forums General plotting several plots in a single graph

This topic contains 1 reply, has 2 voices, and was last updated by  Eric Verner 1 year, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3586

    bittoo

    i have six individual files of plots in MATLAB. i have to combine all those in one for the purpose of comparision. how do i open all the files at one place?

    #4544

    Eric Verner
    Member

    bittoo,

    Have you tried using subplot? If you want to combine the graphs in a 3×2 configuration, you could do this:

    figure
    subplot(3,2,1);
    plot(…);
    subplot(3,2,2);
    plot(…);
    subplot(3,2,3);
    plot(…);
    subplot(3,2,4);
    plot(…);
    subplot(3,2,5);
    plot(…);
    subplot(3,2,6);
    plot(…);

    To combine the graphs in a 2×3 configuration, substitute subplot(3,2,p) with subplot(2,3,p).

    http://www.mathworks.com/help/matlab/ref/subplot.html

    Hope this helps.

    -Eric

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Bookmark and Share