Cell contents assignment to a non-cell array object.
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (2)
Azzi Abdelmalek
am 18 Aug. 2013
Bearbeitet: Azzi Abdelmalek
am 18 Aug. 2013
0 Stimmen
Maybe your cell array handles.myList was used as double before these lines of code
1 Kommentar
Jonasz
am 18 Aug. 2013
Frank Ozioko
am 25 Jun. 2018
0 Stimmen
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
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!