fwrite( ) displays a character incorrectly

The character in question is ” (right double quote mark, HTML code 8221). fwrite() output is shown below:
>>fwrite(1, ' hello ” ') hello ÿ
I am using R2016b.

Réponses (1)

Robert U
Robert U le 27 Juil 2017
Modifié(e) : Robert U le 27 Juil 2017
Hi usr5,
the issue addressed is the precision parameter (https://de.mathworks.com/help/matlab/ref/fwrite.html).
fwrite(1, ' hello ” ','char')
That can give you the correct output.
Kind regards,
Robert Uhlig

Catégories

En savoir plus sur Elementary Math dans Centre d'aide et File Exchange

Tags

Question posée :

le 27 Juil 2017

Modifié(e) :

le 27 Juil 2017

Community Treasure Hunt

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

Start Hunting!

Translated by