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

9 visualizaciones (últimos 30 días)
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
Matt J
Matt J el 2 de Sept. de 2021
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?
Ryan Ferdinandez
Ryan Ferdinandez el 3 de Sept. de 2021
Editada: Ryan Ferdinandez el 3 de Sept. de 2021
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)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 3 de Sept. de 2021
Probably in your exercise, you can try one of the data smoothing filters, such as moving average or band-pass filters.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Productos


Versión

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by