I have data which class is char. I need to write this data in word doc. Which function I need to use?

1 visualización (últimos 30 días)
%my inputs;
parameters = 0:.1:1
A = [ parameters; exp(parameters)]
degree=('0.233 ppm')
fileID = fopen('trial.doc','w')
fprintf(fileID,'%6s %12s\n','parameters','rms')
fprintf(fileID,'%6.2f %30.8f\n',A)
fprintf(fileID,'%6s %12s\n\n\n',' ', ' ')
fprintf(fileID,'%6s %12s\n','parameters_2','rms_2')
%after this stage I want to write "degree" data below the rms_2 but this data is char, how can I write this data in word?
  1 comentario
Jan
Jan el 17 de Jul. de 2013
Editada: Jan el 17 de Jul. de 2013
What does "in word" mean? Do you mean Word of the Microsoft Office or do you mean a simple text file? What are >>the "degree" data<< ? Please do not let us guess, what you are doing. Post a running example and format the code properly.

Iniciar sesión para comentar.

Respuesta aceptada

Daniel Pereira
Daniel Pereira el 17 de Jul. de 2013

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files 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