MATLAB: How to sum strings digits

digitsMATLABstring

How can I sum these numbers . and return the result in string datatype without loosing the precision.
'9437256976162618652738646244869425874869', '776357087634731721006'

Best Answer

Use John D'Errico's excellent FEX submission, Variable Precision Integer Arithmetic:
>> A = vpi('9437256976162618652738646244869425874869')
A =
9437256976162618652738646244869425874869
>> B = vpi('776357087634731721006')
B =
776357087634731721006
>> A + B
ans =
9437256976162618653515003332504157595875