필터 지우기
필터 지우기

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 (최근 30일)
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

답변 (2개)

Andrew Reibold
Andrew Reibold 2013년 6월 6일
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 2013년 6월 6일
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?

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by