What is the meaning of Adding a String to a Double?

Respuestas (1)

Iain
Iain el 6 de Jun. de 2013

0 votos

Strings are represented as integer values.
A = 65, B = 66...
You can ADD numbers, say, 65 + 1, and you would get 66, which is also B.
Adding 0 to a string is just a cheap way of turning a string into a double.
Its like doing xor(A,A) to get 0.

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Preguntada:

el 6 de Jun. de 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by