Borrar filtros
Borrar filtros

Sliding function in window?

3 visualizaciones (últimos 30 días)
Sebastian Daneli
Sebastian Daneli el 15 de Dic. de 2021
Respondida: Steven Lord el 15 de Dic. de 2021
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]')

Respuesta aceptada

Steven Lord
Steven Lord el 15 de Dic. de 2021
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.

Más respuestas (1)

Walter Roberson
Walter Roberson el 15 de Dic. de 2021

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by