unreachable and dead code

35 次查看(过去 30 天)
VINAY
VINAY 2026-2-24,4:25
评论: VINAY about 6 hours 前
why i am getting unreachable and dead code warning , i am not able to understant.
if anyone knows, please help me.
  2 个评论
Image Analyst
Image Analyst about 8 hours 前
I can't even read that thing. What is that diagram? Is it Stateflow or Simulink (which I don't have)? How did you run your check on it? You might have some condition that is always false, like
value = false
if value
% Do something if value = true
% This block will never get executed since value is not a variable,
% it's a constant.
end
VINAY
VINAY about 3 hours 前
Now you can check

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Decision Logic 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by