I have data which class is char. I need to write this data in word doc. Which function I need to use?
조회 수: 1 (최근 30일)
이전 댓글 표시
%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
채택된 답변
Daniel Pereira
2013년 7월 17일
try http://www.mathworks.com/matlabcentral/fileexchange/15192-officedoc-readwriteformat-ms-office-docs-xlsdocppt for writning into office (xls/doc/ppt).
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 String Parsing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!