?? cnstm.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 + -