I have an two arrays which is to be plotted vs. time in same plot using 'hold on' command. After doing it, i tried to use 'shape preserving interpolant' from fitting window. I want to apply this fitting separately to the data from two different array but in the same plot. I am facing the problem that if this fitting is done I get one curve and while doing fitting for second data to get second curve first curve disappears and second curve appears. i want to fit both the data to get two curves in the same plot. Please help me for that!!