unreachable and dead code

22 views (last 30 days)
VINAY
VINAY about 22 hours ago
Commented: Image Analyst about 7 hours ago
why i am getting unreachable and dead code warning , i am not able to understant.
if anyone knows, please help me.
  1 Comment
Image Analyst
Image Analyst about 5 hours ago
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

Sign in to comment.

Answers (0)

Categories

Find more on Decision Logic in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!