How do i fix return error in matlab?

6 次查看(过去 30 天)
Hey guys I'm not so sure why i'm getting this error when i return and if statement

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2021-3-26
编辑:Fangjun Jiang 2021-3-26
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".

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by