how assign cell to dropdown menu
app.PeriodicityDropDown.Items
ans =
1×4 cell array
{‘Option 1’} {‘Option 2’} {‘Option 3’} {‘Option 4’}
K>> class(tmp)
ans =
‘double’
i try this solution:
K>> app.PeriodicityDropDown.Items={tmp}
‘Items’ must be a 1-by-N cell array of character vectors or a string array.
K>> app.PeriodicityDropDown.Items=num2cell(tmp)
‘Items’ must be a 1-by-N cell array of character vectors or a string array.
how can i assign it?app.PeriodicityDropDown.Items
ans =
1×4 cell array
{‘Option 1’} {‘Option 2’} {‘Option 3’} {‘Option 4’}
K>> class(tmp)
ans =
‘double’
i try this solution:
K>> app.PeriodicityDropDown.Items={tmp}
‘Items’ must be a 1-by-N cell array of character vectors or a string array.
K>> app.PeriodicityDropDown.Items=num2cell(tmp)
‘Items’ must be a 1-by-N cell array of character vectors or a string array.
how can i assign it? app.PeriodicityDropDown.Items
ans =
1×4 cell array
{‘Option 1’} {‘Option 2’} {‘Option 3’} {‘Option 4’}
K>> class(tmp)
ans =
‘double’
i try this solution:
K>> app.PeriodicityDropDown.Items={tmp}
‘Items’ must be a 1-by-N cell array of character vectors or a string array.
K>> app.PeriodicityDropDown.Items=num2cell(tmp)
‘Items’ must be a 1-by-N cell array of character vectors or a string array.
how can i assign it? how assign cell to dropdown menu MATLAB Answers — New Questions