How to rectify this error in generating matrix 729x729?

1 vue (au cours des 30 derniers jours)
surabhi sachdeva
surabhi sachdeva le 3 Nov 2017
How to rectify this?
Actually here B is a list of 729 elements and each element is a 6 tuple. By 6-tuple, I mean to say each element is of length 6. i.e. 101110, 210110.. and so on.
I want to generate a table/matrix (BxB) i.e. 729x729. ,
Kindly help me generating such a matrix.
>> i=0:2;
j=0:2;
k=0:2;
Np = 2; %last state number for each entry, states are numbered from 0 to Np
K=2;
A=fullfact([3 3 3 3 3 3])-1;
B = char(A+'0');
>> states=B;
>> rownames = states;
>> varnames = states;
>> mtrx=cell(729,729);
>> AuthorTable = mat2dataset(mtrx, 'VarNames', varnames, 'ObsNames', rownames);
* *Error using setobsnames (line 29)
NEWNAMES must be a nonempty string or a cell array of nonempty strings.
Error in dataset (line 377)
a = setobsnames(a,obsnamesArg);
Error in mat2dataset (line 75)
d = dataset(vars{:},args{:});**

Réponses (0)

Catégories

En savoir plus sur MATLAB 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