Dimension mismatch when trying to insert array into cell
Dimension mismatch when trying to insert array into cell
(OP)
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?
RE: Dimension mismatch when trying to insert array into cell
=====================================
(2B)+(2B)' ?
RE: Dimension mismatch when trying to insert array into cell