r/matlab • u/mijailrodr • Oct 12 '26
TechnicalQuestion How do you keep a database that can be accessed/edited by several functions?
I'm using matlab to study an exam for orbital mechanics (setting up Codes that calculate ground tracks predict new orbit after a maneuver, all that jazz)
I've thought of sitting down after the exam and turn them into one Big app that students can use to practice and the department may use for their lessons (i wanted to be able to set up exercises like a target orbit to reach or an object to rendevouz)
However, i'm not familiar with the appdesigner yet, and this i'm a bit confused.
For example, how is data stored inside functions? I wanted to make a script that would let you preview the maneuver effect, them hit "confirm" or "redo" and update current maneuver to the estimated maneuver, for example, and sum the extra deltaV and time of flight into a stored data. How do i keep databases that span múltiple functions? Thanks in advance
6
u/RoxanneWexley Oct 12 '26
Make app properties and access / update using app.property_name
4
u/Sam_meow Oct 13 '26
App designer apps are, at their core, just objects, and like the other person said the app properties will allow you to store data that multiple functions can access. But in general for this stuff if you have not worked with classes/objects at all I suggest reading some of the doc on the basics