Partition of data into segments

1 view (last 30 days)
Badrinath Veluri
Badrinath Veluri on 5 Oct 2014
Answered: the cyclist on 5 Oct 2014
Hi,
I am working on test data which has three different segments. I would like to split that whole data into three segments and fit the curves according to the order of polynomial. After the data is fitted I would like merge the data into one set.
Can anyone give the hints to this problem.
Thanks in advance.
Regards Badri

Answers (1)

the cyclist
the cyclist on 5 Oct 2014
If you have the Statistics Toolbox, there are a few of built-in functions that might be handy:
  • cvpartition
  • randsample
  • datasample
If not, then you could do something with
  • randi
  • randperm

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!