All i am trying to do is this:
type = cell(size(A));
...
i = find(A == 0);
type{i} = 'pasok';
However it miserably fails is size(A) > 1 or if i is empty.
Is there any workaround for this problem?
UPDATE -ERROR
type =
[] []
ans =
1 2
i =
1 2
The right hand side of this assignment has too few values to satisfy the left hand side.
Error in ellipse (line 48) type{i} ='pasok';
type{i} = 'pasok'fails when i is either empty or multi-valued, because you have read the error messages and the documentation. So what is the problem you are trying to solve ?