How to load .dat file in matlab?

237 次查看(过去 30 天)
Pallavi M
Pallavi M 2015-10-30
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');

回答(1 个)

Stalin Samuel
Stalin Samuel 2015-10-30

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by