“double”类型的输入参数的未定义函数或方法

时间:2011-12-04 14:45:45

标签: matlab

我不确定为什么在尝试执行以下操作时出现此错误:

imageData = imread(input_file); %Read image from graphic file

imageDataBits = dec2bin(imageData,8); %Turns each decimal value into a decimal byte value

imageDataBitsTranspose = imageDataBits'; %Transpose the imageDataBits so that when reshape is used each byte is sent in the correct order

imageDataBitsReshape = reshape(imageDataBitsTranspose,1,393216); %Converts a 49152 by 8 matrix to a 1 by 393216

for i=1:393216
if imageDataBitsReshape(i)==1  %If the image data bit is a 1 transmit A*T/2
    S(i) = A*T/2;        
else
    S(i)     = -(A*T/2);      %If the image data bit is a 0 transmit -A*T/2       
end

???未定义的功能或方法 'imageDataBitsReshape'用于输入 “double”类型的参数。

0 个答案:

没有答案