How to plot shape preserving interpolants for multiple data variables in a single plot

I have a data set of 7 columns as Time and var1, var2,......,var6. and I have plot the graphs of Time vs var1, Var2,......,Var6 in the same plot. And i want to plot the induvidual shape preserving interpolants of each data plots of Time vs var1, Time vs var2, ........, Time vs var6 in the same plot.
As thown in the sample data, i want to draw the shape preserving interpolants of both the above plots in the same diagram.
Is it possible to do so, if so how should i do it.
Thank you for consideration!

2 comentarios

I'm not sure anyone knows what you mean by a "shape preserving interpolant". Do you mean you want to fit each of var1...var6 with a smooth wave? If so, what is the model function for the wave?
Thank you for the response. I mean there is a basic fitting tool called shape preserving interpolant( check the attachment) and Time variable is my independent variable. I want to polt the graphs of var1, var2, ....., var6 vs time in the same graph and use the basing fitting tools for each graph and represent them in the same graph for the comparison of the variation of the data. I have tried it several times, but it only allows me to show only one graph at a time. when i chage the date from var1 to var2 from select data in the figure, the var1 data got vanished and vise versa. so i want to know is it possible to do basic fittings for all graphs and represent in the same diagram.
  • in the given figure i have plotted 2 variables against the time. so i want to do the basic fittings for both the green and red graphs and show both of them in the same diagram at the same time. but with my current settings, it doesn't allow me to plot the basic fittings for both the graphs and represent them at the same time.

Iniciar sesión para comentar.

Respuestas (1)

Productos

Versión

R2013b

Preguntada:

el 2 de Sept. de 2021

Respondida:

el 3 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by