Borrar filtros
Borrar filtros

How to fix odd string imports?

1 visualización (últimos 30 días)
Dc215905
Dc215905 el 25 de Jun. de 2021
Respondida: Walter Roberson el 25 de Jun. de 2021
Hello,
I'm importing data and and forwhatever reason the strings get imported as:
  2 comentarios
Walter Roberson
Walter Roberson el 25 de Jun. de 2021
Unfortunately, your example did not get posted.
How are you doing your importing?
What kind of file are you importing from?
Which MATLAB release do you have?
Dc215905
Dc215905 el 25 de Jun. de 2021
Editada: Dc215905 el 25 de Jun. de 2021
Thanks for your reply.
The example are:
'ÿÿÿÿÿÿÿÿ' , ' 'Spot1.cfs ÿÿÿ', XFlags ÿÿÿÿ
I'm using to read the text and it's from a .cfs file (data aquisition software)
fread(fid,[1,8],'uint8=>char');
I'm using matlab 2021a

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 25 de Jun. de 2021
Which .cfs ?
The ÿ character is unicode U+00FF so the most likely situation is that you are reading a binary file (that might have text-readable parts)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by