Importing two different files with different sampling rate
显示 更早的评论
i need to import,plot & compare two different experimental data,seperated by comma(in .txt format). These two files eventhough recording time(start to end) is same,sampling rate is different.One records 4 samples per sec.Other at 8 samples per sec. My query now is if i import these file..because of difference in sampling rate..data matrix size will be different.So,when i plot with time matlab generates error stating'Both matrix are of different sizes' Can some body help me how to come across this problem??
I need to plot both in same plot for comparision..
采纳的回答
更多回答(1 个)
Wayne King
2012-5-17
0 个投票
There are multiple things you can do. A couple of these are:
1.) You can resample the data using resample() That would enable you to visualize them on the same time axis.
2.) You can plot them in different subplots.
类别
在 帮助中心 和 File Exchange 中查找有关 Discrete Data Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!