Chunking a portion of raw data

3 views (last 30 days)
Mit
Mit on 11 Sep 2013
Hi, I need a small suggestion. I have to chunk the beginning of a data which is in floating format. As in, my data is abc.dat which is (2198560*1)size. I need to cut the first 143100 samples. Which is the best method?
Also, I need to get two data to the same length.Which is the most effective method to this apart from using MIN function.
Thanks

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 11 Sep 2013
Edited: Azzi Abdelmalek on 11 Sep 2013
Example
A=rand(2198560,1);
A(1:143100);
%-----------------------
a1=a(1:numel(a)/2);
a2=a(numel(a)/2+1:end)

Categories

Find more on Modeling 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!