pspectrumで​得られたデータのベク​トルが4096になる​理由

3 views (last 30 days)
一秀 近藤
一秀 近藤 on 21 Jan 2023
Commented: 一秀 近藤 on 22 Jan 2023
pspectrumを使いスペクトルの計算を行ったのですがそのデータのベクトルの数が4096になる理由がわかりません。教えていただきたいです。

Accepted Answer

Hernia Baby
Hernia Baby on 21 Jan 2023
デフォルトが4096だからです
周波数分解能等をいじるとサイズが変わります
Fs = 1000;
t = (0:1/Fs:.296).';
x = cos(2*pi*t*200)+0.1*randn(size(t));
xTable = timetable(seconds(t), x);
s0 = pspectrum(xTable);
s1 = pspectrum(xTable,'FrequencyResolution',25);
disp(size(s0))
4096 1
disp(size(s1))
161 1
  4 Comments
一秀 近藤
一秀 近藤 on 22 Jan 2023
とてもわかりやすく説明していただきありがとうございます。

Sign in to comment.

More Answers (0)

Categories

Find more on フーリエ解析とフィルター処理 in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!