⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vtb7_1.m

📁 matlab平台开发的振动工具箱
💻 M
字号:
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);figureaa=version;ll=length(aa);plot(t,y);title('Sin(pi*t)+Sin(10*t) versus Time')xlabel('Time')ylabel('F(t)')x=fft(y,512);grid onpausePyy=x.*conj(x)/512;f=10*(0:255)/512;plot(f,Pyy(1:256))grid ontitle('Power Spectral Density of F(t)')xlabel('Frequency (Hz)')ylabel('Power Spectral Density')pause

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -