Setting data at a uitable getting this error "Values within a cell array must be numeric, logical, or char"
1 次查看(过去 30 天)
显示 更早的评论
I have the data that are shown at the figure. Columns 1,2,5,6 and 7 are cell and columns 3 and 4 are doulbes. These data are saved in a variable and I want to set them as data of an uitable
(set(handles.uitable3, 'data', data))
However i got the following error
"Values within a cell array must be numeric, logical, or char".
What sould I do?

0 个评论
回答(1 个)
Walter Roberson
2015-8-9
Those columns 1, 2, 5, 6, 7, should not be cell arrays of strings: they should be strings directly. So class(data{1,1}) should be char not cell.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!