'Conversion to cell from double is not possible.' During table assignement

5 vues (au cours des 30 derniers jours)
I have encountered this problem in one of my codes (reproduced here with simple data) :
vect = [1 2 4 3]; % creating a vector
mat = [vect;vect]; % juste a simple matrix
% initialising a table
varnames = {'SomeTableCellData'};
vartypes = {'cell'};
Table = table('Size',[0 length(varnames)],'VariableTypes',vartypes,'VariableNames',varnames);
% this works
Table(1,'SomeTableCellData') = {mat};
% this doesn't work
Table(2,'SomeTableCellData') = {vect};
But both {mat} and {vect} are cell arrays containing double, so I'm a bit lost as why this happens.
Thanks for your help.
  2 commentaires
Valentin LAPLAUD
Valentin LAPLAUD le 25 Nov 2020
Interesting... Didn't thought of that, thanks.
Still is a strange error though

Connectez-vous pour commenter.

Réponse acceptée

Raunak Gupta
Raunak Gupta le 4 Déc 2020
I have brought this issue (with the row vector while assignment to a table) to the notice of our developers. They will investigate the matter further.

Plus de réponses (0)


En savoir plus sur Tables dans Help Center et File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by