Function converts numbers from command line to ASCII value
显示 更早的评论
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!