Error using a read-only variable "%1!s!" in an assignment expression. The expression result cannot be assigned to the variable ...

Error using a read-only variable "%1!s!" in an assignment expression. The expression result cannot be assigned to the variable because the variable is read only. Choose a variable that can be written to, or remove the expression from this variable.