I am reading from two txt files. I have imported them into Matlab and did some calculations, this gave me two tables. Is it possible to concatenate the two tables into one? I am using version 2012b and I have tried join(LeftT, RightT) but I get Undefined function or variable
Please see below:
LeftT:
1936
1937
1938
RightT:
5.4000 5.5000 5.3000 8.5000 8.7000 7.9000 8.3000 8.7000 7.5000 6.5000 5.5000 5.3000
3.6000 6.0000 6.7000 8.0000 9.7000 9.5000 9.4000 6.9000 7.6000 7.3000 5.5000 5.5000
5.7000 5.1000 7.4000 7.8000 9.5000 9.7000 8.9000 7.9000 7.2000 6.4000 6.5000 5.2000
Expected:
1936 5.4000 5.5000 5.3000 8.5000 8.7000 7.9000 8.3000 8.7000 7.5000 6.5000 5.5000 5.3000
1937 3.6000 6.0000 6.7000 8.0000 9.7000 9.5000 9.4000 6.9000 7.6000 7.3000 5.5000 5.5000
1938 5.7000 5.1000 7.4000 7.8000 9.5000 9.7000 8.9000 7.9000 7.2000 6.4000 6.5000 5.2000
Code:
LeftT = TableMin(:,1:13);
RightT = TableMax(:,1:13);
DifferenceT = RightT(:,2:13)-LeftT(:,2:13)
Results = Years , DifferenceT