Setting data at a uitable getting this error "Values within a cell array must be numeric, logical, or char"

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?

回答 (1 件)

Walter Roberson
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.

1 件のコメント

How I can do this?
Thank you veryn much for your precious help

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

質問済み:

2015 年 8 月 9 日

コメント済み:

2015 年 8 月 11 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by