Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2008-06-01
年龄: 42
帖子: 23
声望力: 17 ![]() |
![]()
小程序1:
for i=1:1024 x(1,n)=i; end 程序正常,得到一个矩阵,元素为1-1024 小程序2: for i=0:0.001:1.023 n=i*1000+1; x(1,n)=i*1000; end 程序运行到i=0.009的时候提示“??? Subscript indices must either be real positive integers or logicals.”,为什么不能同样得到0-1023的矩阵? 请高手帮忙解答一下这个小问题!!:lovely: :lovely: |
![]() |
![]() |