rain1206
2009-03-27, 09:46
c=[];
I=[1 2 3 4 5 6 7 8 9];
l=length(I);
for i=1:l
for j=1:16
while (j-1)*16<=I(i)<j*16
c((i-1)*4+1:i*4)=de2bi(j-1,4);
end
end
end
c
请问我这个程序有什么问题吗?为什么不能执行出结果呢?
谢谢!
I=[1 2 3 4 5 6 7 8 9];
l=length(I);
for i=1:l
for j=1:16
while (j-1)*16<=I(i)<j*16
c((i-1)*4+1:i*4)=de2bi(j-1,4);
end
end
end
c
请问我这个程序有什么问题吗?为什么不能执行出结果呢?
谢谢!