Creating a table using a drop-down menu
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matthew Dick
am 18 Apr. 2020
Kommentiert: Matthew Dick
am 20 Apr. 2020
I am trying to place a 1x3 vector of integers into the Item data associated with each option (let's say N is the number of options) in a drop-down menu, then I want to create an output Nx2 matrix and plot it in the figure on the right panel.

Essentially, I'm trying to set N number of points (N defined by the slider value) in a flight plan by assigning data (altitude, velocity, and time) to the item data of each item in the drop-down menu, then concatenate all of the item data vectors and plot it. Everytime I attempt to assign values to the itemdata of a given option, it sets the number of items to 1, leaving only one option to select in the dropdown.
Any suggestions?
2 Kommentare
Geoff Hayes
am 20 Apr. 2020
Matthew - please show us the code that is assigning "values to the itemdata of a given option" so that we can understand how "it sets the number of items to 1".
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!