How do I put different plots on the same figure on Curve fitting tool application

I am using the curve fitting tool toolbox. I want to combine plots on the same figure. It only allows one set of values of x, y on each fit. But i want to put in more set of values. Is it possible? e.g x1=(2, 4,6,8,10) x2=(1,3,5,7,9) y1=(1,2,3,4,5) y2=(1.1,2.1,3.3,4.4,5.5).Thank you

Answers (1)

x1=[2, 4,6,8,10]
x2=[1,3,5,7,9]
y1=[1,2,3,4,5]
y2=[1.1,2.1,3.3,4.4,5.5]
plot(x1,y1,'r',x2,y2,'g')
%or
plotyy(x1,y1,x2,y2)

Categories

Asked:

on 10 Jan 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!