How can I add to a row 1 unit? I have the following cell:
A= {12 1996 199915 1999 200226 1997 200143 1999 200859 1995 2000}
I would like the output to be:
Output={A= {12 1996 1999 200015 1999 2002 200326 1997 2001 200443 1999 2008 200959 1995 2000 2001}
I tried this:
A(:,end+1) = cell2mat(A(:,3))+1;
It gives me the error: 'Conversion to cell from double is not possible.'
But if I take out the 'cell2mat', I get the error: 'Undefined function 'plus' for input arguments of type 'cell'.'
Does someone know how to solve the problem? Thank you
Best Answer