how to plot ecg from .mat file

조회 수: 4 (최근 30일)
Deepa
Deepa 2014년 2월 22일
댓글: Dishant Arora 2014년 2월 22일
I have downloaded the .mat file from physionet database for mitbih database. I need to plot it and find ecg features. How can I do it?

답변 (1개)

Dishant Arora
Dishant Arora 2014년 2월 22일
you have to load variables from the mat file to your worksapce, then you can plot them or process them:
load matfileName
  댓글 수: 2
Deepa
Deepa 2014년 2월 22일
can you please give me the syntax? iam new to matlab
Dishant Arora
Dishant Arora 2014년 2월 22일
clear all
worksapce % make sure wirkspace panel is showing
load fullfilename % check out workspace panel for the variables loaded
% It might be vectors containing independent and dependent variables
% or a single matrix having different variables in differenet columns
t = yourArray(:,1) % lets say it's a matrix
x = yourArray(:,2)
plot(t,x)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 AI for Signals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by