MATLAB Answers

Translated by

이 페이지의 내용은 영어에서 자동 번역되었습니다. 자동 번역 기능을 해제하려면 "<a class="turn_off_mt" href="#">여기</a>"를 클릭하십시오.


Receiving 'Dimensions of arrays being concatenated are not consistent.' error, but there are equal amounts of rows being input.

Asked by Stephen on 15 Feb 2019
Latest activity Commented on by Stephan
on 15 Feb 2019
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]);
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!


Sign in to comment.

1 Answers

Answer by Stephan
on 15 Feb 2019
 Accepted Answer

T = table(Mean, Std_Error, Deviation, Variance, Min, Max, Range, Confidence_95,'VariableNames',{'mean','sem','std','var','min','max','range','meanci'})
Best regards


Thanks Stephan! That's got the variable names correct and I can certainly use it.
Is there a simple way to transpose them to columns (for neatness sake in a report), if not this will do fine :)

Sign in to comment.

Translated by