How declare a global vector
108 views (last 30 days)
I want to declare a global variable V1, dimensions [2 x 1]:
But I have this error: Size mismatch (size [1 x 1] ~= size [2 x 1]). The size to the left is the size of the left-hand side of the assignment. How I can change the dimensions of V1?
David Sanchez on 23 Jun 2014
The fact of being a global variables has nothing to do with its dimension. The following is perfectly valid:
Make sure that your line:
is well defined and its elements are scalars.
Image Analyst on 24 Jun 2014
Looks like you might have changed your question. If you have
Then Vrefg and Vrefh must both be scalars or have the same number of columns if they are arrays. What is the value of those two variables?