How to convert a signal in .mat form to .dat form?

4 views (last 30 days)
Iam doing my project in ecg beat classification and I have downloaded the signal from physionet. The signal obtained is in .mat form but to do fuzzy clustering i have to convert it to .dat file. So plzz help...

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 29 Aug 2012
data=load('YourFileName')
% data is a struct variables with multiple fields : f1,f2,....
dlmwrite('New_Name',[data.f1 data.f2 ])
  3 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 30 Aug 2012
%if YourFileName.mat file contains variables x,y and z for ;example then
data=load('YourFileName')
% data is a struct variable with fields x,y and z . to acces them:
x=data.x
y=data.y
z=data.z
Bajdar Nour
Bajdar Nour on 20 Aug 2018
What if my .mat contains 3 rows and 50 columns of double array images?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!