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

📄 cnstm.m

📁 一种新的时频分析方法的matlab源程序。
💻 M
字号:
function z=cnstm(p,nf1,nf2,nn)
%
% z=cnstm(p,nf1,nf2,nn):
%
% Function to construct a matrix of constant horizontal value.
%
% Input-
%	p	- vector p(nf2), representing the power spectrum
%	nf1	- index of the lower range of frequency selected
%	nf2	- index of the upper range of frequency selected
%	nn	- the length of the matrix; p, power spectrum; 
% Output-
%	z	- matrix z(nf2-nf1,nn) of constant horizontal value
% 

in=nf2-nf1+1;
z=zeros(in,nn);
for i=1:in,
   z(i,:)=p(nf1+i-1)*ones(1,nn);
end
return

⌨️ 快捷键说明

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