Filter löschen
Filter löschen

converting .mat to .dat file

103 Ansichten (letzte 30 Tage)
hardik
hardik am 27 Mär. 2012
Hi everyone....i have recorded some data of some partial discharge in the .mat format. the data contains x and y variables and displays the graph.
i want to convert this information into .dat so that i can use my linux software and sample the data collected.
can someone tell me how to convert this to .dat format.
cheers hardik

Akzeptierte Antwort

Sarah Wait Zaranek
Sarah Wait Zaranek am 27 Mär. 2012
This should do it. Note: I made a sample mat-file with x,y,a as my variables.
load test.mat
dlmwrite('test.dat',[x y a])
This will write a ASCII format file using the default delimiter (,). You can use another delimiter if you wish.
  1 Kommentar
hardik
hardik am 12 Apr. 2012
thank you very much for that....and how do i save this .dat file to a new location so that i can load it to the linux?
sorry for late response :P
for example can u specify me few lines for saving to a new place.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Prateekee Chatterjee
Prateekee Chatterjee am 4 Jun. 2024
What if the mat file is so large, MATLAB cannot show me all the variables itself. How do I then convert it to dat?

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by