MATLAB: Convert numeric values to ASCII code

ascii

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

Best Answer

Try this:
t = 2.5;
Out = int64(num2str(t))
Out1 =
1×3 int64 row vector
50 46 53
Related Question