How can I copy the programm?

Hey guys,
I have got some questions. I am a newbie working with guis. Reading the matlab help I found following programm:
In this link its said to copy the words below into the command window.
copyfile(fullfile(docroot, 'techdoc','creating_guis',...
'examples','lb.*')), fileattrib('lb.*', '+w')
guide lb.fig
By doing this a programm opens. With this programm you can insert the variables of the workspace in a listbox. From this listbox you can choose two variables and you can plot them.
When I try to make the same programm, and copy the whole stuff, I dont get the listbox, where the variables of the workspace should be. Also I get one warning:
Warning: Single-selection 'listbox' control requires a scalar Value.
Control will not be rendered until all of its parameter values are valid
I dont know why I get this warning. How can I fix this?
Thanks in advance.
Kind regards Frederic

Answers (1)

per isakson
per isakson on 10 Feb 2015
Edited: per isakson on 10 Feb 2015
"Also I get one warning:" &nbsp See the Uicontrol Property, max &nbsp In a table down the page you'll find
'listbox'
The Max property value helps determine whether the user can select multiple
items in the list box simultaneously. If Max – Min > 1, then the user can
select multiple items simultaneously. If Max – Min ≤ 1, then the user cannot
select multiple items simultaneously. If you set the Max and Min properties
to allow multiple selections, then the Value property value can be a vector
of indices.

This question is closed.

Asked:

on 10 Feb 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!