Undefined function or variable 'cell2str'.

6 visualizaciones (últimos 30 días)
Ioannis Vourvachakis
Ioannis Vourvachakis el 13 de Oct. de 2021
Comentada: Ioannis Vourvachakis el 13 de Oct. de 2021
I ran a function, but an error appeared in the following line:
fprintf(cell2str(strcat({'Experimentally measued stoichs add up to '},num2str(expFracSum),{'\n'})));
with the message Undefined function or variable 'cell2str'.
If the problem is that 'cell2str' is inactive, how can i replace it to do my job?
Thank you

Respuestas (1)

Cris LaPierre
Cris LaPierre el 13 de Oct. de 2021
That is not a function created by MathWorks, but you can get it here from File Exchange.
  3 comentarios
Cris LaPierre
Cris LaPierre el 13 de Oct. de 2021
You might also be able to just replace it with the MATLAB function string.
fprintf(string(strcat({'Experimentally measued stoichs add up to '},num2str(25.6),{'\n'})));
Experimentally measued stoichs add up to 25.6
Ioannis Vourvachakis
Ioannis Vourvachakis el 13 de Oct. de 2021
Thank you again very much

Iniciar sesión para comentar.

Categorías

Más información sobre Characters and Strings 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