Which method I can use for reduce number of samples or Increase the samples?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Adam
el 10 de Ag. de 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 ) )
Respuestas (1)
Bruno Luong
el 10 de Ag. de 2023
Editada: Bruno Luong
el 10 de Ag. de 2023
Take a look at interp1
0 comentarios
Ver también
Categorías
Más información sobre Multirate Signal Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!