フィルターのクリア

how to interpret format hex displays

10 ビュー (過去 30 日間)
Seetha Rama Raju Sanapala
Seetha Rama Raju Sanapala 2014 年 7 月 20 日
編集済み: Wayne King 2014 年 7 月 20 日
format hex a=12 The output you get is a long string of digits like 40XXXXXXXXXXXX (some digits) where as you expect to get C.
Also if a is a fraction, again you get a string of digits without any point in between. How to interpret this results?

採用された回答

Wayne King
Wayne King 2014 年 7 月 20 日
編集済み: Wayne King 2014 年 7 月 20 日
I think you really want dec2hex()
A = 12;
dec2hex(A)
Read
and
to get an understanding of what
format hex
is doing.
Specifically, on
They walk you through how to go from
3fd5555555555555
to 1/3. This is what MATLAB gives you (the reverse) when you do
x = 1/3;
format hex
x

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by