akaballa
Computer
- May 29, 2011
- 7
Hi,
I am a newbie in matlab. I am trying to initialize an empty matrix with certain dimensions.
However, I get the following error
I m not sure why it is not recognizing x and y. Can some let me know of the proper initialization technique.
I am a newbie in matlab. I am trying to initialize an empty matrix with certain dimensions.
Code:
X = 1:5;
Y = 1:1;
[X, Y] = ndgrid(x, y);
tabuList = [X,Y];
for i = 1:5
tabuList(i,1) = 'EMPTY';
end
Code:
??? Undefined function or variable 'x'.
I m not sure why it is not recognizing x and y. Can some let me know of the proper initialization technique.