Plotting signals captured at different sample rates on same plot

How do you plot 2 signals one at 2048 hz and one at 120hz on the same plot so they have the same time axis even with being captured at different rates?

回答 (1 件)

bym
bym 2011 年 7 月 10 日

3 投票

x1 = linspace(0,3,2048);
x2 = linspace(0,3,120);
y1=cos(2*x1);
y2 = sin(2*x2);
plot(x1,y1,'b.',x2,y2,'g.')

カテゴリ

ヘルプ センター および File ExchangeLine Plots についてさらに検索

質問済み:

2011 年 7 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by