How would I make a pop up menu of varying length depending on the problem? (corresponds to the number of columns in a matrix)

1 visualización (últimos 30 días)
Hello,
I need to send values to a function. I would like to pass on the column with two other values from an edit text box. The length of the pop up menu has to correspond to the number of columns in the matrix I need to get the values from and 1->x corresponds to each column 1->x in the metrix. Thanks in advance

Respuestas (2)

Andrew Reibold
Andrew Reibold el 6 de Jun. de 2013
You have to update the 'String' property of the popup to contain whatever you want to be a string with whatever options you want to show in the pop up.
I believe you either do this with new lines or by creating a cell array of strings, with each string being an option in the popup.
Give it a whirl and let us know if that works for you

Image Analyst
Image Analyst el 6 de Jun. de 2013
If you need to pass values to a function, just send in the variables via the input argument list. What does a popup have to do with passing values to a function? I do not understand the grammar of this sentence: "The length of the pop up menu has to correspond to the number of columns in the matrix I need to get the values from and 1->x corresponds to each column 1->x in the metrix." Please reword. What's in the matrix? What does the number of columns in the matrix have to do with the number of lines in the popup? What exactly does 1->x mean? What is x??? Can you give an example of what's in the matrix, what you want to appear in the popup, and what variables need to be sent to the function?

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by