![]() |
[求助]matlab 程序
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 请问我这个程序有什么问题吗?为什么不能执行出结果呢? 谢谢! |
回复: [求助]matlab 程序
[QUOTE=rain1206;27254]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);...[/QUOTE] 你的while 语句中,怎么会出现(j-1)*16<=I(i)<j*16这样的条件表达式? 起码也应该(j-1)*16<=I(i)&&I(i)<j*16 :cool: :lovely: :ft: |
回复: [求助]matlab 程序
谢谢指教,我要学习再学习!
|
所有时间均为北京时间。现在的时间是 04:52。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.