フィルターのクリア

splitting up time series into separate chunks?

4 ビュー (過去 30 日間)
nines
nines 2020 年 2 月 14 日
編集済み: Walter Roberson 2020 年 2 月 15 日
Hello all,
I have a timeseries of the cortex. I want to separte wake vs. sleep based on a behavior of clicking, which I can split up by time.
I want to split up the sections where the subject is asleep vs. when the subject is awake.
I keep getting the error:
Error using timeseries/plot (line 27)
The plot method can only be used for a single timeseries object
Error in untitled5 (line 22)
plot(ttt, sleep)
I've tried:
%%%%
sleep = timeseries(d_c_ts_1(:,1), 1:9809,'name', 'intersection1');
sleep = timeseries(d_c_ts_1(:,1), 1:9809,'name', 'intersection1');
sleep = timeseries(d_c_ts_1, 1:9809,'name', 'intersection1')
figure;
plot(ttt, sleep)

採用された回答

Walter Roberson
Walter Roberson 2020 年 2 月 15 日
編集済み: Walter Roberson 2020 年 2 月 15 日
When you use plot() with a timeseries object, the time involved is already embedded in the timeseries object. Therefore you only pass the timeseries object, not time and then timeseries.
If ttt is another timeseries object and you want both plotted, then plot separately with "hold on" between.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFrequently-used Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by