Error using horzcat Dimensions of matrices being concatenated are not consistent

1 view (last 30 days)
Hi there,
I'm trying to plot simple graphs. All I did was importing data from an excel file to Matlab. I tried to create a matrix consisting of 6 columns from the table W4 I imported from excel. The following error shows:
>> delamination = [W4.TEMP32, W4.TEMP11, W4.TEMP27, W4.TEMP28, W4.TEMP38, W4.TEMP39] Error using horzcat Dimensions of matrices being concatenated are not consistent.
I checked and all the columns have the same dimensions. The same command also worked before for other columns. Any ideas what might be wrong? I'm just starting learning Matlab btw!
Thanks, Kuba
  1 Comment
Stephen23
Stephen23 on 19 Mar 2015
Edited: Stephen23 on 19 Mar 2015
Use the size command to get the exact dimensions of a variable, like this:
size(W4.TEMP32)
What are the exact dimensions of all six variables?

Sign in to comment.

Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!