How to rectify this error in generating matrix 729x729?

4 ビュー (過去 30 日間)
surabhi sachdeva
surabhi sachdeva 2017 年 11 月 3 日
編集済み: surabhi sachdeva 2017 年 11 月 3 日
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{:});**

回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by