Multiple plots coombine and concatenate in matlab : <p>The problem is that I have a for loop as follows: </p>

<pre><code>for i=1:(rx * tx)    
    for j=1:(rx * tx)
        eval(sprintf('t_%d_%d_t = corrcoef(m_a%d_abs, m_b%d_abs)', pairs(i), pairs(j), pairs(i), pairs(j)));
        eval(sprintf('t_%d_%d = t_%d_%d_t(1, 2)', pairs(i), pairs(j), pairs(i), pairs(j)));

        if(eval(sprintf('t_%d_%d', pairs(i), pairs(j))) &gt;= max_cor)
            eval(sprintf('figure(''name'', ''a (%d) &lt;&gt; b (%d)'')', pairs(i), pairs(j)));
            eval(sprintf('plot(a%d, ''r'')', pairs(i)));
            hold on;
            eval(sprintf('plot(b%d, ''b'')', pairs(j)));
            xlabel('Tones (f)');
        end
    end
end
</code></pre>

<p>this for loop plots each Plot in a new window according to the if statement like this plot <a href="https://i.stack.imgur.com/yRQ1e.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yRQ1e.jpg" alt="enter image description here"></a></p>

<p>I want to concatenate each next plot after the last plot so that all plots are combined on one plot but concatenated.
I hope, you understand me. Many thanks.</p>
