[問題] 離散訊號求power spectral density已回收
小弟目前想把我經由simulink得到並已存入Workspace中振動的離散訊號
由time domain的訊號去求出他的power spectral density(PSD)
此訊號在time domain中為一個50001*1的矩陣(sample time=0.001 執行50秒)
此訊號存在Workspace中的名稱為ddXh
以下為我的m file
clear
close all
clc
parameter;
load parameter1285
vehicle1=readfis('vehicle1');
tf = 50 ;
sim('passive',[0 tf]); (passive為simulink檔名)
Fs = 1000; % Sampling frequency
L = length(t); % Length of signal
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
[Pxy,f]=pwelch(ddXh,[],[],NFFT,Fs);
plot(f,Pxy)
請問我這樣轉出來的就是ddXh的PSD嗎?
但結果Pxy的單位好像是dB/Hz
請問這樣轉換出來單位只能是dB/Hz嗎?
請各位高手提點小弟一下
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.199.89
推
06/07 19:45, , 1F
06/07 19:45, 1F
→
06/07 19:46, , 2F
06/07 19:46, 2F
→
06/07 19:47, , 3F
06/07 19:47, 3F
→
06/07 22:27, , 4F
06/07 22:27, 4F
→
06/07 22:29, , 5F
06/07 22:29, 5F
→
06/07 22:29, , 6F
06/07 22:29, 6F
推
06/08 00:02, , 7F
06/08 00:02, 7F
→
06/08 00:03, , 8F
06/08 00:03, 8F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章