Convert numeric values to ASCII code

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

 採用された回答

Star Strider
Star Strider 2017 年 10 月 17 日

0 投票

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

その他の回答 (1 件)

Gombo Khorloo
Gombo Khorloo 2017 年 10 月 17 日

0 投票

Thanks for the help. :))

1 件のコメント

Star Strider
Star Strider 2017 年 10 月 17 日
As always, my pleasure!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by