How to extend dataset so they match up in matrix length?
10 views (last 30 days)
Show older comments
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
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?
Answers (1)
Image Analyst
on 9 Dec 2016
Did you try to just concatenate dataset2 onto dataset1:
dataset1 = [dataset1; dataset2];
See Also
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!