Function converts numbers from command line to ASCII value
Mostrar comentarios más antiguos
Hey guys,
I have a Problem with my input. As soon as I input a number into any functio e.g. 0 it is convertet to the value 48.
This means if I want to run this function on the number 0:
function test(x)
fprintf ('Value: %2.2d \n', x)
end
If I was to enter test 0 into my command line the answer would be 48
And long numbers become just a vector of their ASCII values. Anybody got a clue to why this happens?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!