MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB基础] Unmatched "end"什么意思 (https://www.labfans.com/bbs/showthread.php?t=7967)

519kay 2009-04-28 10:15

Unmatched "end"什么意思
 
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写上。


所有时间均为北京时间。现在的时间是 11:17

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.