MATLAB Answers

How to plot 8640 datapoints over a 1 day on a second by second basis (i.e. 86400 seconds)

6 views (last 30 days)
Akash Menon
Akash Menon on 18 Oct 2018
Answered: Akash Menon on 19 Oct 2018
Hi there community!
I wanted to build a signal on signal builder on Simulink. I have about 8640 datapoints that were measured over 10 second intervals for 1 day. I want to present the measured data as a continuous signal spread across the whole duration on a second by second basis- meaning the x-axis time range must be from 0-86400 seconds. How do I go about it? As of now I'm only able to plot the data over the 8640 range on the x-axis.
How to I essentially 'stretch' this data to fit the required range? If if only change the x-axis range on signal builder it doesn't work as it doesn't spread the data.
Any help would be great! Many thanks!!
Akash Menon
Akash Menon on 18 Oct 2018
The time was recorded but its like this (10 second intervals): Nope there is no missing data. There are 8640 datapoints for the whole day- one recording taken every 10 seconds.

Sign in to comment.

Accepted Answer

Akash Menon
Akash Menon on 19 Oct 2018
%%Plotting the measured power signals
% Adjusting the x-axis vector (86400 datapoints)
% Plot
Thanks dennis it worked!Thanks for the tip Jonas- had some issues with implementing that x-scale because the data did not show up. Will have to look more into that about how to fix that. Now I just need to figure out how to import this into signal builder on Simulink.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!