plot a discrete signal

2 次查看(过去 30 天)
ayman daraghmah
ayman daraghmah 2015-9-30
编辑: Adam 2015-9-30
[x,fs2,nbits2]= wavread('w.wav');
stem(x);
I want to plot a 20 samples section of x.

采纳的回答

Adam
Adam 2015-9-30
编辑:Adam 2015-9-30
stem(x(1:20))
will plot the first 20 samples of x, assuming it has that many. Or
stem(x(345:364))
etc, to plot some other arbitrary section of 20 samples.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Stem Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by