PDA

查看完整版本 : [MATLAB基础] Unmatched "end"什么意思


519kay
2009-04-28, 10:15
Warning: Unmatched "end".
(Type "warning off MATLAB:m_warning_end_without_block" to suppress this warning.)
Warning: Unmatched "end".
(Type "warning off MATLAB:m_warning_end_without_block" to suppress this warning.)
什么意思?
谢谢

yhcode
2009-04-28, 15:22
函数里end不匹配(每个for, if , swith等都要有个end与之对应),多重循环加多级条件判断很容易出现这个问题,好的编程习惯是每写一个for(或if,switch),先把对应的end写上。