Organize parameters and options

2 visualizaciones (últimos 30 días)
Amy
Amy el 27 de En. de 2017
Respondida: Michelle Wu el 30 de En. de 2017
Dear all,
I wrote a big matlab programme with many options and variables, divided over many m-files. I would like to have a single window in which all the options and parameter values can be edited. I would like there to be standard values that you can adjust by removing the displayed number and replacing the number by your own number of choice. Also, I would like to have options that you can select using a mouseclick. It is probably nice to have a user interface for this.
Do you have any pointers how to organize this well?
Thank you in advance!
  2 comentarios
Adam
Adam el 27 de En. de 2017
It depends entirely on the situation. Use a combination of edit boxes, sliders, popup menus, etc to suit your purpose. Whether you want one or multiple UIs is up to you. You can store the parameters in structures attached to the GUI if you wish. Personally I organise mine in classes, but that is more advanced if you aren't familiar with OOP. Structs kind of do the job if you are using a single GUI.
Amy
Amy el 27 de En. de 2017
Thank you for your response! Do you happen to know of some basic documentation/examples somewhere on the internet that can serve as an example?

Iniciar sesión para comentar.

Respuesta aceptada

Michelle Wu
Michelle Wu el 30 de En. de 2017
There are three approaches that you can adopt to develop a UI in MATLAB:
  • Write the code from scratch
  • Use GUIDE, the MATLAB Graphical User Interface Design Environment
  • Use App Designer, an environment for building MATLAB apps (introduced in R2016a)
A good place to get yourself started is the through the following link:
The above link briefly introduces the three approaches and provides some additional resources including videos, examples, and articles. You may find more information in the documentation accordingly after you decide on which approach to use.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps 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!

Translated by