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

2 次查看(过去 30 天)
I get some special symbols for large arrays and for small arrays I could write the characters.

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by