Convert numeric values to ASCII code

12 views (last 30 days)
I want to convert numeric values of time and amplitude to ASCII code.
I tried many functions but i haven't got success so far.
Example:
t=2.5
t=50 46 53

Accepted Answer

Star Strider
Star Strider on 17 Oct 2017
Try this:
t = 2.5;
Out = int64(num2str(t))
Out1 =
1×3 int64 row vector
50 46 53

More Answers (1)

Gombo Khorloo
Gombo Khorloo on 17 Oct 2017
Thanks for the help. :))

Tags

Community Treasure Hunt

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

Start Hunting!