Which method I can use for reduce number of samples or Increase the samples?
3 views (last 30 days)
Show older comments
Hello,
I am working on some test data. And there are 2 types of files in the data, some files hase 10000 number of samples and some has 20000 number of samples. based on number of samples i am getting two sampling time 0.0001 and 0.00005. For further proccess, I am using sampling time for plot the graph but it takes only one sampling time for all data while plot the graph an I think results are not correct.
So, I want to ask you that, which method I can use to convert both number of samples into one number of samples and use it for plot the graph?
(like convert 10000 samples to 20000 OR 20000 samples to 10000) Also need little bit guidance like, How can I do it?
Thanks in Advance!
2 Comments
Adam
on 10 Aug 2023
You can have two plots on the same axes with different numbers of samples if that is the only reason for which you want to downsample.
e.g.
plot( 1:10, rand(1,10) )
hold on
plot( 1:0.1:10, rand( 1, 91 ) )
Answers (1)
See Also
Categories
Find more on Multirate Signal Processing 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!