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

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)

data=load('YourFileName')
% data is a struct variables with multiple fields : f1,f2,....
dlmwrite('New_Name',[data.f1 data.f2 ])

3 Comments

what do you mean [data.f1 data.f2 ]?
%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
What if my .mat contains 3 rows and 50 columns of double array images?

Sign in to comment.

Asked:

on 29 Aug 2012

Commented:

on 20 Aug 2018

Community Treasure Hunt

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

Start Hunting!