tabulate cell2table
Ältere Kommentare anzeigen
B = tabulate(A)
%2x3 cell
B = cell2table(B,'VariableNames', ...
{'Gender','Count','Percent'})
I get this error, error using cell2table (line 24) c must be a 2-d cell array.
I dont understand why i am getting this error. I am seeing resut for tabulate function 2x3 cell. can not convert it to table. cell2table function works on my different tabulate function calculation
1 Kommentar
Star Strider
am 3 Feb. 2020
It might be helpful to post ‘A’, since this test code works correctly:
C = {'M','F'};
X = C(randi(2, 1, 10));
B = tabulate(X);
B = cell2table(B,'VariableNames', ...
{'Gender','Count','Percent'})
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!