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

5 views (last 30 days)
I get some special symbols for large arrays and for small arrays I could write the characters.

Answers (1)

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

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!