I need to save a data in .xls spreadsheet but in the end it doesn't keep the same as you can see in photos.
The code used :
filenamewrite10=[filename1,'_timemotion_2',ext]
dlmwrite(filenamewrite10,timemotion1,'delimiter','\t','precision',4);
how can i fix this?

댓글 수: 2

Geoff Hayes
Geoff Hayes 2015년 5월 10일
Sérgio - what happens if you increase the precision scalar from 4 to something larger? What do you observe in the text file after the increase?
Sérgio Querido
Sérgio Querido 2015년 5월 10일
It just change the number of decimal places.

댓글을 달려면 로그인하십시오.

 채택된 답변

Image Analyst
Image Analyst 2015년 5월 10일

0 개 추천

Try getting rid of the 'precision' input, or else use xlswrite() instead of dlmwrite().

댓글 수: 1

Sérgio Querido
Sérgio Querido 2015년 5월 10일
편집: Sérgio Querido 2015년 5월 10일
Problem solved using of xlswrite().
final code:
filenamewrite1=[filename1,'_timemotion_1',ext]
sheet = 1;
xlRange = 'A1';
xlswrite(filenamewrite1,timemotion1,sheet,xlRange)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

질문:

2015년 5월 10일

편집:

2015년 5월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by