Problem of .mlx Dropdown?

2 次查看(过去 30 天)
도연 원
도연 원 2022-12-13
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by