Cell contents assignment to a non-cell array object.
显示 更早的评论
I want to put many arguments into listbox in Matlab Guide.
Code :
for i=1:length(setX)
handles.myList{i}={num2str(setX(i))};
end
guidata(hObject, handles);
Where:
setX is a mat variable containing numbers.
What is wrong and how to fix it?
采纳的回答
更多回答(2 个)
Azzi Abdelmalek
2013-8-18
编辑:Azzi Abdelmalek
2013-8-18
0 个投票
Maybe your cell array handles.myList was used as double before these lines of code
Frank Ozioko
2018-6-25
0 个投票
I am new to MATLAB programming, who can help me identify and correct this error message: 'Cell contents assignment to a non-cell array object'
>> n=10; xmax=100; x=randi(xmax,n) for i=1:9; for j=2:10; x{i}=x([i,j;j,j]) end end
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!