How do display the contents of array in Listbox using app designer ???
63 views (last 30 days)
I have an array of strings and i try to display that in listbox using app designer .
classdef app1_test < matlab.apps.AppBase
% Properties that correspond to app components
properties (Access = public)
methods (Access = private)
% Callback function
function ListBoxValueChanged(app, event)
value = app.ListBox.Value;
app.ListBox.Value = names_of_songs;
I dont understand what am I doing wrong.
Does anyone know how I can do it.
Thank you for your time.
Chris Portal on 26 May 2019
See the documentation for an example:
Basically, you configure the Items property to hold all the valid values for the listbox, and Value is configured to be 1 of those valid values.