필터 지우기
필터 지우기

How to rectify this error in generating matrix 729x729?

조회 수: 2 (최근 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 CenterFile Exchange에서 Specialized Power Systems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by