How do i fix return error in matlab?

5 visualizaciones (últimos 30 días)
Jialei Liao
Jialei Liao el 26 de Mzo. de 2021
Editada: Fangjun Jiang el 26 de Mzo. de 2021
Hey guys I'm not so sure why i'm getting this error when i return and if statement

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 26 de Mzo. de 2021
Editada: Fangjun Jiang el 26 de Mzo. de 2021
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".

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by