Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How grahically add plots?

Status
Not open for further replies.

necratog

Electrical
Aug 10, 2005
2
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?
 
Replies continue below

Recommended for you

It's not something built into Matlab, but it wouldn't be that difficult to code up. You could use some uicontrols to kick off a curve-picking routine.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor