How to extend dataset so they match up in matrix length?

10 views (last 30 days)
Hello, I have two datasets; Dataset1 where values are logged per minute and Dataset2 where values are logged per second. How do I extend dataset1 so that the values for every minute is repeated 60 times (ie. for every second in the one minute) ?
So that Dataset1 and dataset2 add up in length so that i can compare them,
Thanks!
  2 Comments
the cyclist
the cyclist on 9 Dec 2016
Edited: the cyclist on 9 Dec 2016
When you say "dataset", do you mean that your variables are the dataset array data type? Or something else?
What are the sizes of your variables?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 9 Dec 2016
Did you try to just concatenate dataset2 onto dataset1:
dataset1 = [dataset1; dataset2];
  1 Comment
Camilla jensen
Camilla jensen on 11 Dec 2016
No, i didn't try that, cos that is not what i want to do. Dataset1 is a weather parameter and dataset2 is the power produced from a solarpanel. I want to extend dataset1(1437*1 double) so it has the same length as dataset2 (86400*1 double) ie. to make a regression analysis between the two.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!