akaballa
Computer
- May 29, 2011
- 7
Hi I am trying to assign a vector into a cell of another vector
this is what I have so far:
Population = zeros(20,1);
A = ceil(8 * rand(10,1));
Population(1,1) = A
I get the following error:
I am only trying to assign A to the cell with row 1 and col 1. So I am not sure why I am getting a dimension mismatch?
this is what I have so far:
Population = zeros(20,1);
A = ceil(8 * rand(10,1));
Population(1,1) = A
I get the following error:
Code:
Subscripted assignment dimension mismatch.
I am only trying to assign A to the cell with row 1 and col 1. So I am not sure why I am getting a dimension mismatch?