Borrar filtros
Borrar filtros

passing unicode strings to standalone MATLAB application

1 visualización (últimos 30 días)
Vinayak Phalke
Vinayak Phalke el 9 de Feb. de 2016
Editada: Kiran el 12 de Feb. de 2016
Is there a way to correctly pass a unicode string to a standalone application compiled with MATLAB compiler?
I would like to pass in file names which are unicode (two byte characters) to process using MATLAB code compiled with MATLAB compiler. But it seems the default varargin command line arguments are based off ASCII strings and so they do not have the correct file name.

Respuestas (1)

Kiran
Kiran el 12 de Feb. de 2016
Editada: Kiran el 12 de Feb. de 2016
You can read Unicode string and then convert it to the required format using following command:
bytes = unicode2native(unicodestr,encoding)
Refer following documentation for the command:

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by