Here you are solving two equations individually using the “fzero” function. So, we cannot hold the previous plot values in this case while it starts execution for the second equation (fun2).
The alternative way is to store the X and Y data after the completion of each execution of “fzero” and then plot the data on the new figure together on the same axis.
To store the X and Y data together we can use following commands accordingly after each “fzero” solution,
h1 = findobj(gca,'Type','line');
h1x = get(h1,'Xdata');
h1y = get(h1,'Ydata');
Note: similarly store data for the second case (fun2)
Now, at the end we can create the new figure and plot the data on the same axis.
I hope this help you to resolve your query.