unreachable and dead code

34 Ansichten (letzte 30 Tage)
VINAY
VINAY am 24 Feb. 2026 um 4:25
Kommentiert: VINAY vor etwa 5 Stunden
why i am getting unreachable and dead code warning , i am not able to understant.
if anyone knows, please help me.
  2 Kommentare
Image Analyst
Image Analyst vor etwa 9 Stunden
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 vor etwa 5 Stunden
Now you can check

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Decision Logic finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by