When the error comes, how to return a flag but not stop the process
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
博文 李
el 20 de Oct. de 2021
Comentada: 博文 李
el 21 de Oct. de 2021
Sometimes when I use "vpainteral" for the integral of a piecewise function, it does not work, then will report an error and stop the process. I am wondering whether MATLAB can return a flag or some numbers but not stop my process, such that I can use the my-made method replace (much more time-consuming) to solve it at that time.
Thanks in advance.
2 comentarios
Walter Roberson
el 20 de Oct. de 2021
Does vpaintegral() itself report an error? If so, what is the error?
Or is vpaintegral() just returning an unresolved vpaintegral() expression, and the rest of your code is not expecting that?
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!