matlab出现??? Undefined function or method 'sigexpand' for input arguments of type 'double'.

日期:2018-03-13 16:45:48 人气:3

matlab出现??? Undefined function or method 'sigexpand' for input arguments of type 'double'.

function[out]=sigexpand(d,M) %将输入的序列扩展成间隔为N-1个0的序列 N=length(d); out=zeros(M,N); %在shuzi_duojing的例子中,M=8,N=1000,产生一个8行1000列的矩阵 out(1,:)=d; %d的每一个元素赋值给out矩阵每列的第一个元素,因为d中共1000个元素(0,-1或者1),且out矩阵共有1000列,所以当然成立 out=reshape(out,1,M*N); %把out这个矩阵重新变成一个1行M*N
    A+
热门评论