MATLAB: How to separate cell rows in different cell?

I want to separate like this A = cell row 1 B = cell row 2 etc.. how can possible??? please help me and thanks

Best Answer

Do you mean like this?
A = yourcell(1,:);
B = yourcell(2,:);
:
etc
But if you have lots of rows to deal with, or an unknown number of rows that your code will need to deal with, it would be better to leave it all in the original cell variable and then just use the (k,:) row indexing method downstream in your code.
EDIT:
To get rid of the empty cells, e.g.,
A = yourcell(1,:);
A(cellfun(@(x)isempty(x),A)) = [];
or
A = yourcell(1,cellfun(@(x)~isempty(x),yourcell(1,:)));
How many rows will you have to deal with? If there could be a lot, then again I would advise that you encapsulate all of this in another cell matrix instead of creating lots of variables named A, B, etc.