![]() |
如何用while循环读取任意数量的数据,
如何用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') 这是怎么回事呀?新手谢谢指点 |
所有时间均为北京时间。现在的时间是 14:56。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.