Save a data in .xls

2 visualizzazioni (ultimi 30 giorni)
Sérgio Querido
Sérgio Querido il 10 Mag 2015
Modificato: Sérgio Querido il 10 Mag 2015
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 Commenti
Geoff Hayes
Geoff Hayes il 10 Mag 2015
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 il 10 Mag 2015
It just change the number of decimal places.

Accedi per commentare.

Risposta accettata

Image Analyst
Image Analyst il 10 Mag 2015
Try getting rid of the 'precision' input, or else use xlswrite() instead of dlmwrite().
  1 Commento
Sérgio Querido
Sérgio Querido il 10 Mag 2015
Modificato: Sérgio Querido il 10 Mag 2015
Problem solved using of xlswrite().
final code:
filenamewrite1=[filename1,'_timemotion_1',ext]
sheet = 1;
xlRange = 'A1';
xlswrite(filenamewrite1,timemotion1,sheet,xlRange)

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by