Problem of .mlx Dropdown?

2 visualizzazioni (ultimi 30 giorni)
도연 원
도연 원 il 13 Dic 2022
Hi, guys. I am here for asking help.
I use .mlx, and found that very attractive, so I use them a lot. Especially with dropdown.
However for certain case, dropdown does not work properly.
For me, when creating the dropdown, I copy(Ctrl+c after clicking column) from data from variable in the workspace. and paste them to drop down list. See below image.
These works well, when data is not spaced like below;
a(1,:)="abcdefghijklmnoprstuvwxyz"
a(2,:)="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
This created 2 queries, this is okay.
However when data is spaced like this;
a(1,:)="abcdefghijkl mnoprstuvwxyz"
a(2,:)="ABCDEFGHIJK LMNOPQRSTUVWXYZ"
this makes 4 queries, when paste to dropdown.
From my guess, dropdown acknowledge the space as a linebreak...?
So anyway, what I need is to create 2 queries with spaced data.
How can I do it? I found that function which name is 'uidropdown'... but it looks like this is for dropdown for 'figure', not the .mlx code.
Thank you very much.

Risposte (0)

Categorie

Scopri di più su Images in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by