vtb7_1
来自「vtoolbox3.5是振动数值模拟工具箱」· 代码 · 共 41 行
TXT
41 行
function VTB7_1%VTB7_1 is an example of taking a power spectral density% of data. The power spectral density of a signal containing% .5 Hz and 1.59 Hz signals is plotted.t=0:.1:100;t=t';y=sin(pi*t)+sin(10*t);plot(t,y);title('Sin(pi*t)+Sin(10*t) versus Time')xlabel('Time')ylabel('F(t)')x=fft(y,512);text(0,0,'Press Return To Continue','sc')pausePyy=x.*conj(x)/512;f=10*(0:255)/512;plot(f,Pyy(1:256))title('Power Spectral Density of F(t)')xlabel('Frequency (Hz)')ylabel('Power Spectral Density')text(0,0,'Press Return To Continue','sc')pause
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?