Clear Filters
Clear Filters

How to load .dat file in matlab?

237 views (last 30 days)
Pallavi M
Pallavi M on 30 Oct 2015
Answered: Stalin Samuel on 30 Oct 2015
hello, am new to matlab. am trying to load .dat file and am getting an error. am using this code clc; clear all close all fs=800; x=load('ecg.dat'); x0 = downsample(x,3);
subplot(2,1,1) stem(x) title('Original Signal')
subplot(2,1,2) stem(x0) ylabel('down sampled')
am getting error as Error using load Unknown text on line number 1 of ASCII file C:\Documents and Settings\MTech3rd_sem\My Documents\MATLAB\ecg.dat "Ô$ßü$²".
Error in down2 (line 6) x=load('ecg.dat');

Answers (1)

Stalin Samuel
Stalin Samuel on 30 Oct 2015

Community Treasure Hunt

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

Start Hunting!