【发布时间】:2013-01-09 03:46:44
【问题描述】:
我想在矩阵中插入 'double' 类型的值。为此,我正在使用以下 Matlab 代码行创建一个矩阵:
dpitchcnt=(N/256); %N is total number of byte
pitchvec(1:int64(dpitchcnt)); %creating a matrix 'pitchvec' with 1 row and int64(dpitchcnt)' columns
size(pitchvec) %Trying to display the size.
执行上述操作时出现以下错误:
类型输入参数的未定义函数或方法“_colonobj” 'int64'。 ==> 在 31 pitchevec(1:int64(dpitchcnt)) 处的样本出错;
我做错了什么?
【问题讨论】: