MATLAB: Dimensions of arrays being concatenated are not consistent.

dimensionserror

I am designing a truss bridge for a class and am trying to define the location of each joint through a matrix. The code I have input is below. I'm not sure what the error message means and could use some help. There are 60 values that I am trying to represent through cartesian form.
joint = [0,0,4.3301;0,5,4.3301; 0,10,4.3301;0,15,4.3301;0,20,4.3301;...
0,25,4.3301; 0,30,4.3301; 0,35,4.3301;0,40,4.3301;5,0,4.3301;...
5,5,4.3301; 5,10,4.3301;5,15,4.3301;5,20,4.3301;5,25,4.3301;...
5,30,4.3301; 5,35,4.3301;5,40,4.3301;10,0,4.3301;10,5,4.3301; 10,10,4.3301;...
10,15,4.3301;10,20,4.3301: 10,25,4.3301; 10,30,4.3301; 10,35,4.3301;10,40,4.3301;...
15,0,4.3301;15,5,4.3301; 15,10,4.3301;15,15,4.3301;15,20,4.3301; ...
15,25,4.3301; 15,30,4.3301; 15,35,4.3301;15,40,4.3301; 2.5,2.5,0;2.5,7.5,0;2.5,12.5,0;2.5,17.5,0;2.5,22.5,0;...
2.5,27.5,0;2.5,32.5,0; 2.5,37.5,0;7.5,2.5,0;7.5,7.5,0;7.5,12.5,0;7.5,17.5,0;7.5,22.5,0;...
7.5,27.5,0;7.5,32.5,0; 7.5,37.5,0;12.5,2.5,0;12.5,7.5,0;12.5,12.5,0;12.5,17.5,0;12.5,22.5,0;...

Best Answer

In this sequence you put a colon (:) instead of a semicolon (;). This is likely throwing the error —
10,15,4.3301;10,20,4.3301:
should be —
10,15,4.3301;10,20,4.3301;
With that correction, and the addition of a closing square bracket, this works —
joint = [0,0,4.3301;0,5,4.3301; 0,10,4.3301;0,15,4.3301;0,20,4.3301;...
0,25,4.3301; 0,30,4.3301; 0,35,4.3301;0,40,4.3301;5,0,4.3301;...
5,5,4.3301; 5,10,4.3301;5,15,4.3301;5,20,4.3301;5,25,4.3301;...
5,30,4.3301; 5,35,4.3301;5,40,4.3301;10,0,4.3301;10,5,4.3301; 10,10,4.3301;...
10,15,4.3301;10,20,4.3301; 10,25,4.3301; 10,30,4.3301; 10,35,4.3301;10,40,4.3301;...
15,0,4.3301;15,5,4.3301; 15,10,4.3301;15,15,4.3301;15,20,4.3301; ...
15,25,4.3301; 15,30,4.3301; 15,35,4.3301;15,40,4.3301; 2.5,2.5,0;2.5,7.5,0;2.5,12.5,0;2.5,17.5,0;2.5,22.5,0;...
2.5,27.5,0;2.5,32.5,0; 2.5,37.5,0;7.5,2.5,0;7.5,7.5,0;7.5,12.5,0;7.5,17.5,0;7.5,22.5,0;...
7.5,27.5,0;7.5,32.5,0; 7.5,37.5,0;12.5,2.5,0;12.5,7.5,0;12.5,12.5,0;12.5,17.5,0;12.5,22.5,0];