MATLAB Answers


How to plot signal continuously?

Asked by VK.
on 5 Jun 2018
Latest activity Edited by Birdman
on 5 Jun 2018
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?


Sign in to comment.

1 Answer

Answer by Birdman
on 5 Jun 2018
Edited by Birdman
on 5 Jun 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
Hope this helps.


Thanks for your answer. Can you tell me please what is 'val' in your code?
Ups sorry, that should be Tend as well. My mistake. I edited it.

Sign in to comment.