Sorting Data into managable sections for analysis
1 回表示 (過去 30 日間)
古いコメントを表示
Hey,
If I have the following set of data for example:
10 10 10 5 5 5 0 0 0 -5 -5 -5 -10 -10 -10 -5 -5 -5 0 0 0 5 5 5 10 10 10
and so on (the cycle repeats), I want to be able to analyze the cycles individually. For example, the I want to first analyze the first 10:-10 cycle, then do the same with the next 10:-10 cycle, and so on and so forth. Can someone tell me how I can do this?
I was thinking using the find function in order to specify my window range, but find will not allow me to include the zeros. Any suggestions to help me look in the right place would be much appreciated! (:
4 件のコメント
the cyclist
2011 年 10 月 19 日
Still trying to clarify. If your vector was x = [1 2 1 2 1 2 1 2], you would want to return y = [1 2]? And if x = [6 5 4 1 6 5 4 1 6 5 4 1], you would want to return y = [6 5 4 1]? In other words, you want to detect a repeating pattern, and return one instance of that pattern?
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!