using checkboxes to select planets used in planetary motion code
Mostrar comentarios más antiguos
I want to create a GUI with check boxes so that the user can select which planets (for example the sun, earth and jupiter) to run through the code. I have my masses and other values for each planet stored in arrays in my code.
2 comentarios
Simon
el 7 de Nov. de 2013
And the question is?
What did you try so far?
Bob Freeman
el 7 de Nov. de 2013
Respuestas (2)
Image Analyst
el 7 de Nov. de 2013
0 votos
You might try this framework:
to make your GUI development easier.
Simon
el 7 de Nov. de 2013
0 votos
Hi!
Let's say you have 9 planets and 9 checkboxes. You need a logical vector of length 9. For each checkbox you define a callback function that sets the corrsponding value in your logical vector to 1 (if selected) or 0. When running your code you build your planetary matrix only with values of the selected planets.
1 comentario
Bob Freeman
el 7 de Nov. de 2013
Categorías
Más información sobre Earth and Planetary Science en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!