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
0 个评论
回答(1 个)
per isakson
2015-2-10
编辑:per isakson
2015-2-10
"Also I get one warning:"   See the Uicontrol Property, max   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.
0 个评论
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!