필터 지우기
필터 지우기

Sliding function in window?

조회 수: 3 (최근 30일)
Sebastian Daneli
Sebastian Daneli 2021년 12월 15일
답변: Steven Lord 2021년 12월 15일
I have data from recorded brain activity before and after injection of a drug, and I would like to examine the data visually.
Since the data is so long, is it possible to include a sliding function in the window?
load data.mat
figure
plot(data), xlim([0 length(data)]), ylim([-30 30]), xlabel('Time [ms]')

채택된 답변

Steven Lord
Steven Lord 2021년 12월 15일
x = 0:3600;
plot(x, sqrt(x).*sind(x))
axis([0 360 -60 60])
Now either click and drag the mouse or (if you only want to scroll from side to side) use the following command (which won't work on Answers, as Answers doesn't enable interaction with the graphics.)
pan xon
See the documentation for the pan function for additional options.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2021년 12월 15일

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by