May I know what does the following code do "uint8=>char"?

May I know what does the following code do "uint8=>char"? Where can I find more documentation on those kind of operation? Thanks.

 採用された回答

Steven Lord
Steven Lord 2016 年 9 月 2 日

0 投票

That looks like a precision specification for a call to the fread function. That section of the fread documentation page indicates that tells fread to interpret the data it's reading from the file as uint8 data and to return the data in the char data type.

その他の回答 (1 件)

Adam
Adam 2016 年 9 月 2 日

0 投票

As far as I'm aware that is not valid Matlab code unless it is used in context somewhere related to file reading precision. More on this at
doc fread
under 'precision'
If that is the context you mean then it just tells the file reading function that the data in file is unsigned 8 bit, but should be read into Matlab as a char.

カテゴリ

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

タグ

質問済み:

L
L
2016 年 9 月 2 日

回答済み:

2016 年 9 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by