フィルターのクリア

How to write ASCII characters corresponding to decimal numbers into a file?

2 ビュー (過去 30 日間)
RENJI
RENJI 2023 年 2 月 15 日
回答済み: Jan 2023 年 2 月 15 日
I get some special symbols for large arrays and for small arrays I could write the characters.
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 2 月 15 日
a=65;
b=char(a)
b = 'A'
RENJI
RENJI 2023 年 2 月 15 日
Thank you very much.

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

回答 (1 件)

Jan
Jan 2023 年 2 月 15 日
This writes the character 'A' at the current file position:
n = 65;
fwrite(fid, n, 'char')

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by