error using preallocation for table using size option in R2023b
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
vidyasagar g
le 23 Mar 2024
Commenté : Dyuman Joshi
le 24 Mar 2024
h=table('Size',[ 2212 5],"VariableTypes",{'double','double','double','double','double'});
Error using table
You might have intended "VariableTypes" to specify a parameter name. However, the table constructor requires parameter names to be
specified as character vectors. Use table(..., VariableTypes=Value) or table(..., 'VariableTypes', Value) instead.
0 commentaires
Réponse acceptée
Dyuman Joshi
le 23 Mar 2024
Modifié(e) : Dyuman Joshi
le 23 Mar 2024
Use single quotation marks around the VariableTypes arguement instead of double quotation marks -
% v v
h=table('Size',[2212 5],'VariableTypes',{'double','double','double','double','double'})
Reference - 2nd section of Description tab in the documentation of table - https://in.mathworks.com/help/matlab/ref/table.html#d126e1657554
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!