How grahically add plots?
How grahically add plots?
(OP)
Hi,
i have two plots in one figure. Now i want to calculate the sum of those to plots and show it in the same figure.
Is it possible to add 2 plots graphically in matlab?
Does matlab take interpolated values?
i have two plots in one figure. Now i want to calculate the sum of those to plots and show it in the same figure.
Is it possible to add 2 plots graphically in matlab?
Does matlab take interpolated values?





RE: How grahically add plots?
That routine could grab the xdata and ydata from the curves' handles (use gco to pick them). Then you could use interp1 to interpolate one onto the other, do your addition and add the curve to the figure.
All in all, quite a neat little exercise to get you into handle graphics and uicontrols.