I'm not able to create a table from a dataset using the uitable in matlab and I need help! Here's the problem:
I created a simple dataset :
names = {'John'; 'Henri'}
ages = [26; 18];
d1 = dataset({names, 'Name'}, {ages, 'Age'})
then I'have tried to create a uitable with this data and I wrote this line
uitable('data',double(d1))
but I received this error message:
??? Error using ==> uitable
Data must be a numeric, logical, or cell array
Error in ==> uitable at 56
thandle = builtin('uitable', varargin{:});
So I tried again with
uitable('data',cellstr(d1))
but I got this error:
??? Error using ==> dataset.cellstr at 32
Error when converting 'Age' to cell array of strings.
Caused by:
Error using ==> cellstr at 34
Input must be a string.
I can not understand how I can create a uitable from a dataset with both numeric and strings entries.
Would someone be so kind as to help me?
