How to plot signal continuously?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I have vector which length is 120798 and I want to plot it on graph continuously in time. For example, I want to have 15 seconds of signal on the plot all the time. Is there any way to do this?
0 comentarios
Respuestas (1)
Birdman
el 5 de Jun. de 2018
Editada: Birdman
el 5 de Jun. de 2018
Consider the following approach:
A=randi([1 5],1,120798); %this is demo data, you will use your own data instead of this
Tend=15; %you want to plot for 15 seconds
t=0:Tend/numel(A):Tend-(Tend/numel(A));
plot(t,A)
Hope this helps.
2 comentarios
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!