Add elements to uilistbox programmatically
显示 更早的评论
Hi everyone. I'm playing with Matlbai GUIs and I've to add elements to a listBox as my program generate them. Actually I've a function that generates data and I want to put the "Name" of those data inside a list box. Here's my function:
function [ birdInfo, trackBuff ] = saveParabolaOnFramesPlot( birdInfo, trackBuff , f, listbox)
Here's how I actually set the element (but it fails saying _ "There is no String property on the ListBox class."_):
set(listbox, 'String', stringOfField)
the variable "stringOfField" is just a string.
Here's how I call this function from AppDesigner Code View:
[app.birdInfo, app.trackBuff ] = saveParabolaOnFramesPlot( app.birdInfo, app.trackBuff , app.birdInfo.aFrame, app.JumpListListBox);
Any helo would be accepted. Thanks. :)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Desktop 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!