Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2012-12-15
帖子: 3
声望力: 0 ![]() |
![]()
如何用while循环读取任意数量的数据,
【 i=1; n(:,i)=input('please input the [x y]\n'); while isempty( n(:,i))==0 i=i+1; n(:,i)=input('please input the [x y]\n') ; end 】 这是我编的程序,但是每当我只输入回车时屏幕就会出现 Subscripted assignment dimension mismatch. Error in Untitled (line 6) n(:,i)=input('please input the [x y]\n') 这是怎么回事呀?新手谢谢指点 |
![]() |
![]() |