Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

HOw to store data in csvfile with spacific formate

1 Ansicht (letzte 30 Tage)
chhaya gohel
chhaya gohel am 22 Jan. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
hii every one.. i am doing one project in which i am working with x and y co-ordinates of mouse movments from mouse down event to up...
i store them in .csv file. i want the data to be store like this: from first mouse down to up
x1-> 0.111,0.344,0.543...
y1-> 0.867,0.645,0.856...
from second mouse down to up
x2-> 0.155,0.344,0.243...
y2-> 0.367,0.445,0.656...
so i need my csv file should be like this:
x1
y1
x2
y2..
but i got it like
x1
y1
0 x2
0 y2
is it any way to remove these zeros and store from first column of each row... i ma using dmlwrite here TempX and TempY are my x and y co-ordinates
dlmwrite('XY.csv', [TempX;TempY],'precision','%10.10f','delimiter',',','-append');

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by