How to merge multiple graphs in a same plot?

Hi guys!
How can I merge multiple lines into one on the same plot? I have plotted the graphs, what command or tool i should use to combine them? Function for the plot: plot(r1x,r1y,r2x,r2y,r3x,r3y).
Many thanks!

 Réponse acceptée

Star Strider
Star Strider le 15 Fév 2016

0 votes

It depends on how you want to combine them.
I would take the mean and std at each value of your independent variable (use the interp1 function to get values for all the data at the same independent variable values if necessary), and then plot the mean and 95% confidence intervals, using the t-distribution (the tinv function in the Statistics Toolbox) to calculate the confidence intervals.

2 commentaires

Garett Ng
Garett Ng le 16 Fév 2016
thanks pal! really helped a lot!
Star Strider
Star Strider le 16 Fév 2016
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by