Sir, I need to convert .dat file into .mat file

10 views (last 30 days)
Chakradhar Naidu
Chakradhar Naidu on 15 Mar 2019
Commented: Luna on 18 Mar 2019
Reference to non-existent field 'WFDB_CUSTOMLIB'.
Error in getWfdbClass (line 34)
javaWfdbExec=javaObject('org.physionet.wfdb.Wfdbexec',commandName,config.WFDB_CUSTOMLIB);
Error in rdsamp (line 88)
[javaWfdbExec,config]=getWfdbClass('rdsamp');
Error in wfdbdemo (line 12)
[ecg,Fs,tm]=rdsamp('mitdb/100',1,N);

Answers (1)

Luna
Luna on 15 Mar 2019
Hi,
Check mdfimport function in FEX below link:
  2 Comments
Chakradhar Naidu
Chakradhar Naidu on 17 Mar 2019
R/Sir,
I am getting the following error:
Unable to perform assignment because the indices on the left side are not compatible with the size of
the right side.
Error in mdfimport>mdfblockread (line 1927)
Block.(fieldname)(record,:)=fread(fid,count,['*' precision])';
Error in mdfimport>mdfinfo (line 1310)
CCBlockTemp=mdfblockread(formats.CCFormat,fid,offset,1);
Error in mdfimport>populate_GUI (line 410)
[MDFsummary, MDFInfo, counts, channelList]=mdfinfo(handles.fullFileName);
Error in mdfimport>Load_MDF_File_Callback (line 616)
handles=populate_GUI(handles); % Populate GUI (list box)
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in mdfimport (line 87)
gui_mainfcn(gui_State, varargin{:});
Error while evaluating Menu Callback.
Luna
Luna on 18 Mar 2019
Share your code and .dat file for us to reproduce your error and give a proper solution.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!