当前位置:编程学习 > Matlab >>

帮忙看看这个matlab为什么这个程序为什么只循环一次就结束了,谢谢。。。

index=1; array=input('please input the test array'); f=0; while index<=size(array) if f<=array(index) f=array(index); end index=index+1; end String=['the max value of array is:' num2str(f)]; disp(String);
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,