Im using a code to calculate when a satellite re-enters the atmosphere. I need the code to stop running after the satellites altitude goes below 100km. Is there a function i can use to do this?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Im using a code to calculate when a satellite re-enters the atmosphere. I need the code to stop running after the satellites altitude goes below 100km. Is there a function i can use to do this?
0 comentarios
Respuestas (2)
Nut
el 21 de Mzo. de 2017
Maybe the return function:
https://it.mathworks.com/help/matlab/ref/return.html
if altitude < 100
return
end
0 comentarios
Star Strider
el 21 de Mzo. de 2017
It depends on how you’re writing your code. If you’re using a differential equation solver, consider using the ‘event’ option. Otherwise, consider a while loop.
0 comentarios
Ver también
Categorías
Más información sobre Reference Applications 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!