How do i fix return error in matlab?
Ältere Kommentare anzeigen
Hey guys I'm not so sure why i'm getting this error when i return and if statement

Antworten (1)
Fangjun Jiang
am 26 Mär. 2021
Bearbeitet: Fangjun Jiang
am 26 Mär. 2021
0 Stimmen
This is a warning, not an error.
If the code "return" here (which means exiting the function), the varialbe "rho" may never be used, although the top of the function is not shown.
"break" might be what you meant to use. see "help break".
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!