Function converts numbers from command line to ASCII value
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!