Receiving 'Dimensions of arrays being concatenated are not consistent.' error, but there are equal amounts of rows being input.
1 view (last 30 days)
Show older comments
I am trying to make a table where the first column is variable names, and the second is variable data. I have tried;
T = table(['mean';'sem';'std';'var';'min';'max';'range';'meanci'],[Mean, Std_Error, Deviation, Variance, Min, Max, Range, Confidence_95]);
And
T = table(['mean';'sem';'std';'var';'min';'max';'range';'meanci'],[Mean; Std_Error; Deviation; Variance; Min; Max; Range; Confidence_95]);
The variables are coming from the following liine earlier in the script;
[Mean,Std_Error,Deviation,Variance,Min,Max,Range,Confidence_95] = grpstats(sampledata,[],{'mean','sem','std','var','min','max','range','meanci'});
I am definitely just doing something silly as I a terrible at Matlab.
Thanks in advance!
0 Comments
Accepted Answer
Stephan
on 15 Feb 2019
Hi,
try:
T = table(Mean, Std_Error, Deviation, Variance, Min, Max, Range, Confidence_95,'VariableNames',{'mean','sem','std','var','min','max','range','meanci'})
Best regards
Stephan
2 Comments
More Answers (0)
See Also
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!