??? Error using ==> vertcat CAT arguments dimensions are not consistent.
Show older comments
Am running a matlab code which needs input a matrix. its showing me error like here:
??? Error using ==> vertcat CAT arguments dimensions are not consistent for following:
F=[F11 F12 F13;F21 F22 F23;F31 F32 F33]
here F11, F12 .....are elements of the matrix F
Answers (2)
Walter Roberson
on 21 Jun 2012
0 votes
One of the rows [F21 F22 F23] or [F21 F22 F23] or [F31 F32 F33] does not have the same number of columns as the other.
One of the ways this could happen is if one of the elements is empty when the others are not.
2 Comments
samit kumar gupta
on 21 Jun 2012
Walter Roberson
on 21 Jun 2012
Your F11 is a scalar 0, but all of your other F are row vectors of size 1 x 53.
You need
F11 = zeros(size(t));
Andrei Bobrov
on 21 Jun 2012
Can so?
F11=zeros(size(x));
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!